BaseRequest class

The base class for HTTP requests.

Subclasses of BaseRequest can be constructed manually and passed to BaseClient.send, which allows the user to provide fine-grained control over the request properties. However, usually it's easier to use convenience methods like get or BaseClient.get.

Implementers

Constructors

BaseRequest(String method, Uri url)

Properties

contentLength int
The size of the request body, in bytes. [...]
read / write
finalized bool
Whether finalize has been called.
read-only
followRedirects bool
Whether the client should follow redirects while resolving this request. [...]
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
headers Map<String, String>
final
maxRedirects int
The maximum number of redirects to follow when followRedirects is true. [...]
read / write
method String
The HTTP method of the request. [...]
final
persistentConnection bool
Whether a persistent connection should be maintained with the server. [...]
read / write
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

Methods

finalize() ByteStream
Finalizes the HTTP request in preparation for it being sent. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
send() Future<StreamedResponse>
Sends this request. [...]
toString() String
Returns a string representation of this object.
override

Operators

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