HttpResponse constructor

HttpResponse(
  1. HttpMethod method,
  2. String url,
  3. String requestedURL,
  4. int status,
  5. HttpBody? body, {
  6. ResponseHeaderGetter? responseHeaderGetter,
  7. Object? request,
  8. List<Uri>? redirects,
  9. dynamic jsonDecoder(
    1. String jsonEncoded
    )?,
})

Implementation

HttpResponse(
    this.method, String url, String requestedURL, int status, HttpBody? body,
    {ResponseHeaderGetter? responseHeaderGetter,
    this.request,
    List<Uri>? redirects,
    this.jsonDecoder})
    : _body = body,
      _responseHeaderGetter = responseHeaderGetter,
      redirects = redirects ?? [],
      super(url, requestedURL, status) {
  _accessTime = instanceTime;
}