String body

A String representation of the body.

Kept for backwards compatibility, use bodyDecoder instead.

Source

String get body {
  if (decodedBody == null) {
    return null;
  }

  var codec = HTTPCodecRepository
      .defaultInstance
      .codecForContentType(_innerResponse.headers.contentType);

  return UTF8.decode(codec.encode(decodedBody));
}