Interface AsyncClientHttpRequestExecution


  • public interface AsyncClientHttpRequestExecution
    Represents the context of a client-side HTTP request execution.

    Used to invoke the next interceptor in the interceptor chain, or - if the calling interceptor is last - execute the request itself.

    Since:
    4.3
    Author:
    Jakub Narloch, Rossen Stoyanchev
    See Also:
    AsyncClientHttpRequestInterceptor
    • Method Detail

      • executeAsync

        ListenableFuture<ClientHttpResponseexecuteAsync​(HttpRequest request,
                                                          byte[] body)
                                                   throws IOException
        Resume the request execution by invoking the next interceptor in the chain or executing the request to the remote service.
        Parameters:
        request - the HTTP request, containing the HTTP method and headers
        body - the body of the request
        Returns:
        a corresponding future handle
        Throws:
        IOException - in case of I/O errors