public final class StreamResponse extends RestResponse<Void,io.reactivex.Flowable<ByteBuffer>> implements Closeable
| Constructor and Description |
|---|
StreamResponse(HttpRequest request,
int statusCode,
Map<String,String> rawHeaders,
io.reactivex.Flowable<ByteBuffer> body)
Creates a StreamResponse.
|
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Flowable<ByteBuffer> |
body() |
void |
close()
Disposes of the connection associated with this StreamResponse.
|
Void |
headers()
Always returns null due to no headers type being defined in the service specification.
|
rawHeaders, request, statusCodepublic StreamResponse(HttpRequest request, int statusCode, Map<String,String> rawHeaders, io.reactivex.Flowable<ByteBuffer> body)
request - the request which resulted in this StreamResponsestatusCode - the status code of the HTTP responserawHeaders - the raw headers of the HTTP responsebody - the streaming bodypublic Void headers()
RestResponse.rawHeaders().headers in class RestResponse<Void,io.reactivex.Flowable<ByteBuffer>>public io.reactivex.Flowable<ByteBuffer> body()
body in class RestResponse<Void,io.reactivex.Flowable<ByteBuffer>>public void close()
close in interface Closeableclose in interface AutoCloseable/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/