bytes method

void bytes(
  1. List<int> bytes, {
  2. String contentType = 'application/octet-stream',
})

Sends binary data (convenience method).

Implementation

void bytes(
  List<int> bytes, {
  String contentType = 'application/octet-stream',
}) {
  _body.sendBytes(bytes, contentType: contentType);
  _sent = true;
}