Response.fromBytes constructor

Response.fromBytes(
  1. int status,
  2. String statusText,
  3. Map<String, String> headers,
  4. List<int> bytes,
)

Implementation

Response.fromBytes(int status, String statusText, Map<String, String> headers,
    List<int> bytes)
    : super(status, statusText, headers) {
  _body = HttpBody.fromBytes(contentType, bytes, fallbackEncoding: encoding);
}