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