BloomResponse.noContent constructor

BloomResponse.noContent({
  1. Map<String, String>? headers,
})

Helper factory constructor for HTTP 204 No Content responses.

Carries an empty body payload.

Example

return BloomResponse.noContent();

Implementation

factory BloomResponse.noContent({Map<String, String>? headers}) {
  return BloomResponse(
    statusCode: 204,
    headers: headers,
    body: Uint8List(0),
  );
}