BalanceRequest class abstract

The base class for HTTP requests.

Subclasses of BalanceRequest can be constructed manually and passed to BalanceClient.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 BalanceClient.get.

Implementers

Constructors

BalanceRequest(String method, Uri url)

Properties

contentLength int?
The size of the request body, in bytes.
getter/setter pairinherited
finalized bool
Whether finalize has been called.
no setterinherited
followRedirects bool
Whether the client should follow redirects while resolving this request.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
finalinherited
maxRedirects int
The maximum number of redirects to follow when followRedirects is true.
getter/setter pairinherited
method String
The HTTP method of the request.
finalinherited
persistentConnection bool
Whether a persistent connection should be maintained with the server.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url Uri
The URL to which the request will be sent.
finalinherited

Methods

finalize() → ByteStream
Finalizes the HTTP request in preparation for it being sent.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send({Duration? contentTimeout}) Future<StreamedResponse>
Sends this request.
toString() String
A string representation of this object.
inherited

Operators

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