PlainRequest class

Plain Request.

Implemented types
Available extensions

Constructors

PlainRequest.new({required String method, required Uri uri, Headers headers = const Headers(), Stream<Uint8List>? body})

Properties

body Stream<Uint8List>?
Request/Response body.
getter/setter pairoverride-getter
encoding Encoding
Body encoding
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
headers Headers
Request/Response headers.
getter/setter pairoverride-getter
method String
The request method of the client.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri Uri
The requested URI for the request event.
getter/setter pairoverride-getter

Methods

json() Future

Available on HttpMessage, provided by the HttpMessageJson extension

Returns the body as JSON.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
text() Future<String?>

Available on HttpMessage, provided by the HttpMessageText extension

Returns the Request/Response body as String.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited