BufferedRequest class
Allows to read multiple times the content of a StreamedRequest
.
The base.finalize
method is called on first call to finalize and
the result is stored to be returned on each later finalize calls.
Constructors
- BufferedRequest(BaseRequest base)
Properties
- base → BaseRequest
-
final
- contentLength ↔ int?
-
The size of the request body, in bytes.
getter/setter pair
- finalized → bool
-
Whether finalize has been called.
no setter
- followRedirects ↔ bool
-
Whether the client should follow redirects while resolving this request.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
no setter
- maxRedirects ↔ int
-
The maximum number of redirects to follow when followRedirects is true.
getter/setter pair
- method → String
-
The HTTP method of the request.
finalinherited
- persistentConnection ↔ bool
-
Whether a persistent connection should be maintained with the server.
getter/setter pair
- 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.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
) → Future< StreamedResponse> -
Sends this request.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited