Interface AsyncHttpResponseWrapperFactory.AsyncHttpResponseWrapper
- Enclosing interface:
- AsyncHttpResponseWrapperFactory
public static interface AsyncHttpResponseWrapperFactory.AsyncHttpResponseWrapper
The wrapper around the response that will be called by the
AsyncHTTPConduit
instance once the response is received.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidresponseReceived(org.apache.http.HttpResponse response, Consumer<org.apache.http.HttpResponse> delegate) The callback which is called by theAsyncHTTPConduitinstance once the response is received.
-
Method Details
-
responseReceived
default void responseReceived(org.apache.http.HttpResponse response, Consumer<org.apache.http.HttpResponse> delegate) The callback which is called by theAsyncHTTPConduitinstance once the response is received. The delegating response handler is passed as the an argument and has to be called.- Parameters:
response- the response receiveddelegate- delegating response handler
-