BodyExt extension

Decoding operations for HTTP bodies.

on

Methods

decode(Encoding encoding, {int maxBytes = -1}) → Future<String>

Available on Body, provided by the BodyExt extension

Decodes the body using the given encoding.
decodeJson({Object? reviver(Object? key, Object? value)?, int maxBytes = -1}) → Future

Available on Body, provided by the BodyExt extension

Decodes the UTF-8 body into a JSON value.