Java Code Examples for org.springframework.mock.http.client.reactive.MockClientHttpRequest#getCookies()
The following examples show how to use
org.springframework.mock.http.client.reactive.MockClientHttpRequest#getCookies() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HttpHandlerConnector.java From spring-analysis-note with MIT License | 5 votes |
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); }
Example 2
Source File: HttpHandlerConnector.java From java-technology-stack with MIT License | 5 votes |
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); }