spring-framework / org.springframework.web.client / AsyncRequestCallback / doWithRequest

doWithRequest

abstract fun doWithRequest(request: AsyncClientHttpRequest): Unit

Gets called by AsyncRestTemplate#execute with an opened ClientHttpRequest. Does not need to care about closing the request or about handling errors: this will all be handled by the RestTemplate.

Parameters

request - the active HTTP request

Exceptions

java.io.IOException - in case of I/O errors