org.springframework.http.client

Interface AsyncClientHttpRequestExecution


  • Deprecated. 
    as of Spring 5.0, in favor of ExchangeFilterFunction

    @Deprecated
    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<ClientHttpResponse> executeAsync(HttpRequest request,
                                                          byte[] body)
                                                   throws java.io.IOException
        Deprecated. 
        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:
        java.io.IOException - in case of I/O errors