HTTP response for a client connection.
The body of a HttpClientResponse object is a Stream of data from the server. Listen to the body to handle the data and be notified when the entire body is received.
new HttpClient().get('localhost', 80, '/file.txt')
.then((HttpClientRequest request) => request.close())
.then((HttpClientResponse response) {
response.transform(utf8.decoder).listen((contents) {
// handle data
});
});
null
if the socket
is not available.
method
is the method for the current request. The default value
for url
is the value of the HttpHeaders.locationHeader header of
the current response. All body data must have been read from the
current response before calling redirect. [...]
test
accepts any element provided by this stream. [...]
Stream<R>
. [...]
needle
occurs in the elements provided by this stream. [...]
index
th data event of this stream. [...]
test
accepts all elements provided by this stream. [...]
test
. [...]
combine
. [...]
action
on each element of this stream. [...]
test
. [...]
streamConsumer
. [...]
combine
. [...]
test
. [...]
count
data events from this stream. [...]
test
. [...]
count
data events of this stream. [...]
test
is successful. [...]
streamTransformer
to this stream. [...]