RequestAdapter class abstract
Service responsible for translating abstract RequestInformation into concrete native HTTP requests.
Constructors
Properties
- baseUrl ↔ String?
-
The base URL for every HTTP request.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serializationWriterFactory → SerializationWriterFactory
-
Gets the SerializationWriterFactory currently in use for the HTTP core
service.
no setter
Methods
-
convertToNativeRequest<
T> (RequestInformation requestInfo) → Future< T?> -
Converts the given RequestInformation into a native HTTP request used by
the implementing adapter.
T
is the type of the native request. -
enableBackingStore(
BackingStoreFactory backingStoreFactory) → void -
Enables the backing store proxies for the SerializationWriters and
ParseNodes in use using the given
backingStoreFactory
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send<
ModelType extends Parsable> (RequestInformation requestInfo, ParsableFactory< ModelType> factory, [Map<String, ParsableFactory< ? errorMapping]) → Future<Parsable> >ModelType?> - Executes the HTTP request specified by the given RequestInformation and returns the deserialized response model.
-
sendCollection<
ModelType extends Parsable> (RequestInformation requestInfo, ParsableFactory< ModelType> factory, [Map<String, ParsableFactory< ? errorMapping]) → Future<Parsable> >Iterable< ModelType> ?> - Executes the HTTP request specified by the given RequestInformation and returns the deserialized response model collection.
-
sendNoContent(
RequestInformation requestInfo, [Map< String, ParsableFactory< ? errorMapping]) → Future<Parsable> >void> - Executes the HTTP request specified by the given RequestInformation with no return content.
-
sendPrimitive<
ModelType> (RequestInformation requestInfo, [Map< String, ParsableFactory< ? errorMapping]) → Future<Parsable> >ModelType?> - Executes the HTTP request specified by the given RequestInformation and returns the deserialized primitive response model.
-
sendPrimitiveCollection<
ModelType> (RequestInformation requestInfo, [Map< String, ParsableFactory< ? errorMapping]) → Future<Parsable> >Iterable< ModelType> ?> - Executes the HTTP request specified by the given RequestInformation and returns the deserialized primitive response model collection.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited