getTextBody method

Future<String> getTextBody()

Returns a String representation of the body data.

Useful for small size bodies. For large amounts of data use bodyData stream instead.

Implementation

Future<String> getTextBody() async => utf8.decode(await getByteBody());