接口 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.

    从以下版本开始:
    4.3
    作者:
    Jakub Narloch, Rossen Stoyanchev
    另请参阅:
    AsyncClientHttpRequestInterceptor
    • 方法详细资料

      • 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.
        参数:
        request - the HTTP request, containing the HTTP method and headers
        body - the body of the request
        返回:
        a corresponding future handle
        抛出:
        IOException - in case of I/O errors