Response.bytes constructor
Response.bytes(})
Creates a replayable response from raw bytes.
Implementation
Response.bytes(
List<int> bytes, {
this.status = 200,
this.statusText = 'OK',
HeadersInit? headers,
Uri? url,
this.redirected = false,
this.fromCache = false,
}) : body = ResponseBody.fromBytes(bytes),
headers = Headers(headers),
url = url ?? Uri();