spring-framework / org.springframework.http.client / AsyncClientHttpRequestExecution / executeAsync

executeAsync

abstract fun executeAsync(request: HttpRequest, body: ByteArray): ListenableFuture<ClientHttpResponse>

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

Exceptions

IOException - in case of I/O errors

Return
a corresponding future handle