List of usage examples for org.springframework.web.servlet.function ServerRequest headers
Headers headers();
From source file:org.springframework.web.servlet.function.RequestPredicates.java
/** * Return a {@code RequestPredicate} that tests the request's headers * against the given headers predicate.//from w w w .jav a 2s. c o m * @param headersPredicate a predicate that tests against the request headers * @return a predicate that tests against the given header predicate */ public static RequestPredicate headers(Predicate<ServerRequest.Headers> headersPredicate) { return new HeadersPredicate(headersPredicate); }