processResponse static method
Future<HttpClientResponseBody>
processResponse(
- HttpClientResponse response, {
- Encoding defaultEncoding = utf8,
Process and parse an incoming HttpClientResponse.
See HttpBodyHandler for more info on defaultEncoding
.
Implementation
static Future<HttpClientResponseBody> processResponse(
HttpClientResponse response,
{Encoding defaultEncoding = utf8}) async {
var body = await _process(response, response.headers, defaultEncoding);
return HttpClientResponseBody._(response, body);
}