Request class

An HTTP request where the entire request body is known in advance.

Inheritance

Constructors

Request(String method, Uri url)

Properties

body String
The body of the request as a string. [...]
read / write
bodyBytes Uint8List
The bytes comprising the body of the request. [...]
read / write
bodyFields Map<String, String>
The form-encoded fields in the body of the request as a map from field names to values. [...]
read / write
contentLength int
The size of the request body, in bytes. This is calculated from bodyBytes. [...]
read / write, override
encoding Encoding
The encoding used for the request. [...]
read / write
finalized bool
Whether finalize has been called.
read-only, inherited
followRedirects bool
Whether the client should follow redirects while resolving this request. [...]
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
headers Map<String, String>
final, inherited
maxRedirects int
The maximum number of redirects to follow when followRedirects is true. [...]
read / write, inherited
method String
The HTTP method of the request. [...]
final, inherited
persistentConnection bool
Whether a persistent connection should be maintained with the server. [...]
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
url Uri
The URL to which the request will be sent.
final, inherited

Methods

finalize() ByteStream
Freezes all mutable fields and returns a single-subscription ByteStream containing the request body.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
send() Future<StreamedResponse>
Sends this request. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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