BloomResponse constructor

BloomResponse({
  1. int statusCode = 200,
  2. Map<String, String>? headers,
  3. Uint8List? body,
})

Creates a buffered BloomResponse with an optional statusCode, headers, and binary body.

Defaults to HTTP 200 OK with an empty body.

Implementation

BloomResponse({
  this.statusCode = 200,
  Map<String, String>? headers,
  Uint8List? body,
})  : headers = Map<String, String>.from(headers ?? {}),
      body = body ?? Uint8List(0),
      _bodyStream = null;