Response.bytes constructor

Response.bytes({
  1. int statusCode = 200,
  2. List<int>? body,
  3. Map<String, Object>? headers,
})

Create a Response with a byte array body.

Implementation

Response.bytes({
  int statusCode = 200,
  List<int>? body,
  Map<String, Object>? headers,
}) : this._(
        shelf.Response(
          statusCode,
          body: body,
          headers: headers,
        ),
      );