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
    )?,
  10. HttpError? error,
})

Implementation

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