exchange

abstract suspend fun exchange(request: ClientRequest): ClientResponse

Exchange the given request for a ClientResponse.

Note: When calling this method from an CoExchangeFilterFunction that handles the response in some way, extra care must be taken to always consume its content or otherwise propagate it downstream for further handling, for example by the WebClient. Please see the reference documentation for more details on this.

Return

the delayed response

Parameters

request

the request to exchange