Interface ResponseStream


Writable byte sink for a streaming HTTP response.

This type is intentionally not thread-safe. A stream must have one active writer at a time; applications that produce bytes from multiple threads should serialize those writes before calling this API.

Author:
Mark Allen
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Hints that buffered bytes should be made available to the transport promptly.
    Is this stream currently open for writes?
    void
    write(@NonNull byte[] bytes)
    Writes bytes to the response stream.
    void
    Writes the remaining bytes of a byte buffer to the response stream without mutating the caller's buffer.