Creates a new HTTP response with a string body.
Source
Response(
String body,
int statusCode,
{BaseRequest request,
Map<String, String> headers: const <String, String>{},
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);