streamBody method

ResponseBody streamBody(
  1. MediaType contentType,
  2. int contentLength,
  3. Stream<List<int>> source
)

Implementation

static ResponseBody streamBody(
    MediaType contentType, int contentLength, Stream<List<int>> source) {
  return _StreamResponseBody(contentType, contentLength, source);
}