Class StreamingResponse<T>
java.lang.Object
org.opensearch.client.StreamingResponse<T>
HTTP Streaming Response from OpenSearch. This is an experimental API.
-
Constructor Summary
ConstructorsConstructorDescriptionStreamingResponse(org.apache.hc.core5.http.message.RequestLine requestLine, org.reactivestreams.Publisher<org.apache.hc.core5.http.Message<org.apache.hc.core5.http.HttpResponse, org.reactivestreams.Publisher<T>>> publisher) Constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<T> getBody()Get response bobyPublisherorg.apache.hc.core5.http.HttpHostgetHost()Get hostorg.apache.hc.core5.http.message.RequestLineGet request lineorg.apache.hc.core5.http.message.StatusLineReturns the status line of the current responseReturns a list of all warning headers returned in the response.voidsetHost(org.apache.hc.core5.http.HttpHost host) Set host
-
Constructor Details
-
StreamingResponse
public StreamingResponse(org.apache.hc.core5.http.message.RequestLine requestLine, org.reactivestreams.Publisher<org.apache.hc.core5.http.Message<org.apache.hc.core5.http.HttpResponse, org.reactivestreams.Publisher<T>>> publisher) Constructor- Parameters:
requestLine- request linepublisher- message publisher(response with a body)
-
-
Method Details
-
setHost
public void setHost(org.apache.hc.core5.http.HttpHost host) Set host- Parameters:
host- host
-
getRequestLine
public org.apache.hc.core5.http.message.RequestLine getRequestLine()Get request line- Returns:
- request line
-
getHost
public org.apache.hc.core5.http.HttpHost getHost()Get host- Returns:
- host
-
getBody
Get response bobyPublisher- Returns:
- response boby
Publisher
-
getStatusLine
public org.apache.hc.core5.http.message.StatusLine getStatusLine()Returns the status line of the current response -
getWarnings
-