HttpRequest httpRequest = server.client().GET(
"/api/contextParams/baseUri")
.header("X-Forwarded-Proto", "https")
.header("X-Forwarded-Host", "www.example.com");
assertThat(httpRequest.code()).isEqualTo(200);
assertThat(httpRequest.body().trim()).isEqualTo("https://www.example.com/api");
}
@Test
public void should_access_client_address() throws Exception {
HttpRequest httpRequest = server.client().GET(