IOStreamedResponse class

An HTTP response where the response body is received asynchronously after the headers have been received.



IOStreamedResponse(Stream<List<int>> stream, int statusCode, {int contentLength, BaseRequest request, Map<String, String> headers = const {}, bool isRedirect = false, bool persistentConnection = true, String reasonPhrase, HttpClientResponse inner})
Creates a new streaming response. [...]


contentLength int
The size of the response body, in bytes. [...]
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
headers Map<String, String>
final, inherited
isRedirect bool
final, inherited
persistentConnection bool
Whether the server requested that a persistent connection be maintained.
final, inherited
reasonPhrase String
The reason phrase associated with the status code.
final, inherited
request BaseRequest
The (frozen) request that triggered this response.
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
statusCode int
The HTTP status code for this response.
final, inherited
stream ByteStream
The stream from which the response body data can be read. [...]
final, inherited


detachSocket() Future<Socket>
Detaches the underlying socket from the HTTP server.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


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