body property

String get body

The body of the response as a string.

This is converted from bodyBytes using the charset parameter of the Content-Type header field, if available. If it's unavailable or if the encoding name is unknown, latin1 is used by default, as per RFC 2616.

Implementation

String get body => _encodingForHeaders(headers).decode(bodyBytes);