public class HttpHandlerConnector
extends java.lang.Object
implements org.springframework.http.client.reactive.ClientHttpConnector
HttpHandler rather
than making actual requests to a network socket.
Internally the connector uses and adapts
MockClientHttpRequest and MockClientHttpResponse to
MockServerHttpRequest and MockServerHttpResponse.
| Constructor and Description |
|---|
HttpHandlerConnector(org.springframework.http.server.reactive.HttpHandler handler)
Constructor with the
HttpHandler to handle requests with. |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<org.springframework.http.client.reactive.ClientHttpResponse> |
connect(org.springframework.http.HttpMethod httpMethod,
java.net.URI uri,
java.util.function.Function<? super org.springframework.http.client.reactive.ClientHttpRequest,reactor.core.publisher.Mono<java.lang.Void>> requestCallback) |
public HttpHandlerConnector(org.springframework.http.server.reactive.HttpHandler handler)
HttpHandler to handle requests with.public reactor.core.publisher.Mono<org.springframework.http.client.reactive.ClientHttpResponse> connect(org.springframework.http.HttpMethod httpMethod,
java.net.URI uri,
java.util.function.Function<? super org.springframework.http.client.reactive.ClientHttpRequest,reactor.core.publisher.Mono<java.lang.Void>> requestCallback)
connect in interface org.springframework.http.client.reactive.ClientHttpConnector