HttpResponse constructor

HttpResponse({
  1. required HttpStatus status,
  2. String version = 'HTTP/1.1',
  3. Map<String, String>? headers,
  4. Uint8List? body,
})

Implementation

HttpResponse({
  required this.status,
  this.version = 'HTTP/1.1',
  Map<String, String>? headers,
  this.body,
}) : headers = headers ?? {};