public class ResponseAsyncHandler
extends com.ning.http.client.AsyncCompletionHandler<com.ning.http.client.Response>
AsyncHandler which waits to load the whole response to memory before propagating it.| Constructor and Description |
|---|
ResponseAsyncHandler(CompletableFuture<org.mule.runtime.http.api.domain.message.response.HttpResponse> future) |
| Modifier and Type | Method and Description |
|---|---|
com.ning.http.client.Response |
onCompleted(com.ning.http.client.Response response) |
void |
onThrowable(Throwable t) |
public ResponseAsyncHandler(CompletableFuture<org.mule.runtime.http.api.domain.message.response.HttpResponse> future)
public com.ning.http.client.Response onCompleted(com.ning.http.client.Response response)
throws Exception
onCompleted in class com.ning.http.client.AsyncCompletionHandler<com.ning.http.client.Response>Exceptionpublic void onThrowable(Throwable t)
onThrowable in interface com.ning.http.client.AsyncHandler<com.ning.http.client.Response>onThrowable in class com.ning.http.client.AsyncCompletionHandler<com.ning.http.client.Response>Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.