Interface SdkAsyncHttpResponseHandler
- 
 public interface SdkAsyncHttpResponseHandlerHandles asynchronous HTTP responses.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonError(Throwable error)Called when there is an error making the request or receiving the response.voidonHeaders(SdkHttpResponse headers)Called when the headers have been received.voidonStream(org.reactivestreams.Publisher<ByteBuffer> stream)Called when the streaming body is ready.
 
- 
- 
- 
Method Detail- 
onHeadersvoid onHeaders(SdkHttpResponse headers) Called when the headers have been received.- Parameters:
- headers- The headers.
 
 - 
onStreamvoid onStream(org.reactivestreams.Publisher<ByteBuffer> stream) Called when the streaming body is ready.This method is always called. If the response does not have a body, then the publisher will complete the subscription without signalling any elements. - Parameters:
- stream- The streaming body.
 
 - 
onErrorvoid onError(Throwable error) Called when there is an error making the request or receiving the response. If the error is encountered while streaming the body, then the error is also delivered to theSubscriber.- Parameters:
- error- The error.
 
 
- 
 
-