WebfluxUtils { public static String getHeaderValue(ServerRequest request, String headerName) { return getHeaderValue(request.headers(), headerName); } private  WebfluxUtils(); static String getHeaderValue(ServerRequest request, String headerName); static String getHeaderValue(ServerRequest.Headers headers, String headerName);  }
@Test public void testGetHeader() { HttpHeaders headers = new HttpHeaders(); headers.add("app", "demo"); ServerRequest req = MockServerRequest.builder().headers(headers).build(); Assert.assertEquals("demo", WebfluxUtils.getHeaderValue(req, "app")); }