bodyBytes method

Future<List<int>> bodyBytes(
  1. int maxBytes
)

The entire body of the request as a list of bytes.

Returns a Future to a list of integers.

Throws PostTooLongException if the HTTP request body is longer than maxBytes. To retrieve arbitrarily large bodies, use bodyStream.

Implementation

Future<List<int>> bodyBytes(int maxBytes) => _coreRequest.bodyBytes(maxBytes);