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:

Implementation

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