Class StreamResponse

java.lang.Object
com.azure.core.http.rest.SimpleResponse<Flux<ByteBuffer>>
com.azure.core.http.rest.StreamResponse
All Implemented Interfaces:
Response<Flux<ByteBuffer>>, Closeable, AutoCloseable

public final class StreamResponse extends SimpleResponse<Flux<ByteBuffer>> implements Closeable

This class represents a REST response with a streaming content. It encapsulates the HTTP request that resulted in the response, the status code of the HTTP response, the headers of the HTTP response, and the content of the HTTP response as a stream of byte buffers.

It also provides methods to write the content of the HTTP response to a AsynchronousByteChannel or a WritableByteChannel, and to dispose the connection associated with the response.