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 Type
    Method
    Description
    default void
    responseReceived(org.apache.http.HttpResponse response, Consumer<org.apache.http.HttpResponse> delegate)
    The callback which is called by the AsyncHTTPConduit instance 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 the AsyncHTTPConduit instance once the response is received. The delegating response handler is passed as the an argument and has to be called.
      Parameters:
      response - the response received
      delegate - delegating response handler