read method

Stream<Uint8List> read({
  1. int? maxLength,
})

Reads the body as a stream of bytes. Can only be called once.

If maxLength is provided, throws MaxBodySizeExceeded if the body exceeds the limit. See Body.read for details.

Implementation

Stream<Uint8List> read({final int? maxLength}) =>
    body.read(maxLength: maxLength);