Request<T> class
Constructors
Properties
-
bodyBytes
→ Stream<
List< int> > -
The BodyBytesStream of body from this Request
final
- contentLength → int?
-
final
-
decoder
→ Decoder<
T> ? -
final
- files → FormData?
-
final
- followRedirects → bool
-
When true, the client will follow redirects to resolves this Request
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
Headers attach to this Request
final
- maxRedirects → int
-
The maximum number of redirects if followRedirects is true.
final
- method → String
-
The Http Method from this Request
ex:
GET
,POST
,PUT
,DELETE
final - persistentConnection → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → Uri
-
The Uri from request
final
Methods
-
copyWith(
{Uri? url, String? method, Map< String, String> ? headers, Stream<List< ? bodyBytes, bool? followRedirects, int? maxRedirects, int? contentLength, FormData? files, bool? persistentConnection, Decoder<int> >T> ? decoder, bool appendHeader = true}) → Request<T> -
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