Http3Response constructor

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

Creates an HTTP/3 response.

statusCode is required. headers defaults to an empty map and body defaults to null.

Implementation

Http3Response({
  required this.statusCode,
  this.headers = const {},
  this.body,
});