body property

  1. @override
Stream<List<int>>? body
inherited

Get the byte stream that will be sent as this request's body.

Implementation

@override
Stream<List<int>>? get body => _body;
  1. @override
void body=(Stream<List<int>>? byteStream)
inherited

Set this request's body to be a byte stream. The given stream should be a single subscription string to avoid losing data. This request's body will be sent asynchronously by listening to this stream.

Be sure to set encoding if the byte stream should be decoded with something other than the default utf-8.

Implementation

@override
set body(Stream<List<int>>? byteStream) {
  verifyUnsent();
  _body = byteStream;
}