HttpBody.stream constructor

const HttpBody.stream(
  1. Stream<List<int>> stream, {
  2. int? length,
})

A body of a raw bytes stream. This is useful to avoid loading the entire body into memory. The Content-Length header will be set if length is provided.

Implementation

const factory HttpBody.stream(Stream<List<int>> stream, {int? length}) =
    HttpBodyBytesStream._;