ServerResponse constructor
ServerResponse({})
Implementation
ServerResponse({
required this.statusCode,
Map<String, String>? headers,
this.body = '',
List<int>? bodyBytes,
}) : headers = headers != null ? Map.from(headers) : {},
bodyBytes = bodyBytes ?? utf8.encode(body);