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, {
  this._responseHeaderGetter,
  this.request,
  List<Uri>? redirects,
  this.jsonDecoder,
  this._error,
}) : _body = body,
     redirects = redirects ?? [],
     super(url, requestedURL, status) {
  _accessTime = instanceTime;
}