bytes property

Future<Uint8List> bytes

Get the body request as raw bytes.

Implementation

Future<Uint8List> get bytes async {
  final builder = await fold<BytesBuilder>(
    BytesBuilder(copy: false),
    (a, b) => a..add(b),
  );
  return builder.takeBytes();
}