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

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

Introduction

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

Prototype

@Override
    public HttpHeaders getHeaders() 

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();//from ww w.  ja  va2s  .c om
    HttpHeaders headers = request.getHeaders();
    MultiValueMap<String, HttpCookie> cookies = request.getCookies();
    return MockServerHttpRequest.method(method, uri).headers(headers).cookies(cookies).body(body);
}