Response constructor
Response(})
Creates a new HTTP response with a string body.
Implementation
Response(String body, int statusCode,
{BaseRequest? request,
Map<String, String> headers = const {},
bool isRedirect = false,
bool persistentConnection = true,
String? reasonPhrase})
: this.bytes(_encodingForHeaders(headers).encode(body), statusCode,
request: request,
headers: headers,
isRedirect: isRedirect,
persistentConnection: persistentConnection,
reasonPhrase: reasonPhrase);