public interface SdkAsyncHttpResponseHandler
Modifier and Type | Method and Description |
---|---|
void |
onError(Throwable error)
Called when there is an error making the request or receiving the response.
|
void |
onHeaders(SdkHttpResponse headers)
Called when the headers have been received.
|
void |
onStream(org.reactivestreams.Publisher<ByteBuffer> stream)
Called when the streaming body is ready.
|
void onHeaders(SdkHttpResponse headers)
headers
- The headers.void onStream(org.reactivestreams.Publisher<ByteBuffer> stream)
This method is always called. If the response does not have a body, then the publisher will complete the subscription without signalling any elements.
stream
- The streaming body.void onError(Throwable error)
Subscriber
.error
- The error.Copyright © 2023. All rights reserved.