HttpClientResponse constructor
HttpClientResponse(
- Response _response
Implementation
HttpClientResponse(this._response) {
headers = HttpHeaders.fromFetchResponseHeaders(_response.headers);
_body = _response.body ?? Stream.empty();
final contentLengthHeader =
headers.value(io.HttpHeaders.contentLengthHeader);
contentLength = int.parse(contentLengthHeader ?? '-1');
}