public final class StreamResponse extends SimpleResponse<Flux<ByteBuffer>> implements Closeable
| Constructor and Description |
|---|
StreamResponse(HttpRequest request,
int statusCode,
HttpHeaders headers,
Flux<ByteBuffer> value)
Creates a
StreamResponse. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Disposes the connection associated with this
StreamResponse. |
Flux<ByteBuffer> |
getValue()
The content of the HTTP response as a stream of
byte buffers. |
getHeaders, getRequest, getStatusCodepublic StreamResponse(HttpRequest request, int statusCode, HttpHeaders headers, Flux<ByteBuffer> value)
StreamResponse.request - The request which resulted in this response.statusCode - The status code of the HTTP response.headers - The headers of the HTTP response.value - The content of the HTTP response.public Flux<ByteBuffer> getValue()
byte buffers.getValue in interface Response<Flux<ByteBuffer>>getValue in class SimpleResponse<Flux<ByteBuffer>>byte buffers.public void close()
StreamResponse.close in interface Closeableclose in interface AutoCloseableCopyright © 2019 Microsoft Corporation. All rights reserved.