Example usage for org.springframework.mock.http.client.reactive MockClientHttpRequest getURI

List of usage examples for org.springframework.mock.http.client.reactive MockClientHttpRequest getURI

Introduction

In this page you can find the example usage for org.springframework.mock.http.client.reactive MockClientHttpRequest getURI.

Prototype

@Override
    public URI getURI() 

Source Link

Usage

From source file:org.springframework.test.web.reactive.server.HttpHandlerConnector.java

private ServerHttpRequest adaptRequest(MockClientHttpRequest request, Publisher<DataBuffer> body) {
    HttpMethod method = request.getMethod();
    URI uri = request.getURI();
    HttpHeaders headers = request.getHeaders();
    MultiValueMap<String, HttpCookie> cookies = request.getCookies();
    return MockServerHttpRequest.method(method, uri).headers(headers).cookies(cookies).body(body);
}