BloomRpcServerResponse constructor

const BloomRpcServerResponse({
  1. required int statusCode,
  2. dynamic body,
  3. Map<String, String> headers = const {'content-type' : 'application/json; charset=utf-8'},
})

Creates a BloomRpcServerResponse with statusCode, body, and headers.

Implementation

const BloomRpcServerResponse({
  required this.statusCode,
  this.body,
  this.headers = const {'content-type': 'application/json; charset=utf-8'},
});