BaseResponse constructor

BaseResponse(
  1. int status,
  2. String statusText,
  3. Map<String, String> headers
)

Implementation

BaseResponse(this.status, this.statusText, Map<String, String> headers)
    : _headers = Map<String, String>.unmodifiable(
          CaseInsensitiveMap<String>.from(headers)),
      _encoding =
          http_utils.parseEncodingFromHeaders(headers, fallback: latin1),
      _contentType = http_utils.parseContentTypeFromHeaders(headers);