spring-framework / org.springframework.mock.http.client / MockAsyncClientHttpRequest

MockAsyncClientHttpRequest

open class MockAsyncClientHttpRequest : MockClientHttpRequest, AsyncClientHttpRequest

An extension of MockClientHttpRequest that also implements org.springframework.http.client.AsyncClientHttpRequest by wrapping the response in a SettableListenableFuture.

Author
Rossen Stoyanchev

Author
Sam Brannen

Since
4.1

Constructors

<init>

MockAsyncClientHttpRequest()
MockAsyncClientHttpRequest(httpMethod: HttpMethod, uri: URI)

Functions

executeAsync

open fun executeAsync(): ListenableFuture<ClientHttpResponse>