ApiRequest class
Constructors
Properties
-
bodyData
→ Stream<
List< int> > -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, List< String> > -
final
- method → HttpRequestMethod
-
final
-
queryParams
→ Map<
String, List< String> > -
no setter
-
routeParams
→ Map<
String, String> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- session ↔ Session?
-
The callers session provided by AuthenticationMiddleware.
getter/setter pair
- uri → Uri
-
final
Methods
-
getBody<
T> () → Future - Returns decoded body data.
-
getByteBody(
) → Future< Uint8List> - Returns a Uint8List of the body data.
-
getData<
T extends DataObject> (DataBean< T> bean) → Future<T> - Returns decoded body data using a DataBean.
-
getJsonBody(
) → Future< Map< String, dynamic> > - Returns a Map<String, dynamic> representation of json body data.
-
getJsonListBody(
) → Future< List> - Returns a List representation of json body data.
-
getList<
T extends DataObject> (DataBean< T> bean, {bool allowSingleFlat = false}) → Future<List< T> > - Returns decoded body data as list using a DataBean.
-
getParam<
T> (String name) → T - Returns the named query parameter.
-
getRouteParam<
T> (String name) → T - Returns the named route parameter.
-
getTextBody(
) → Future< String> - Returns a String representation of the body data.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited