Example usage for org.springframework.web.servlet.function ServerRequest headers

List of usage examples for org.springframework.web.servlet.function ServerRequest headers

Introduction

In this page you can find the example usage for org.springframework.web.servlet.function ServerRequest headers.

Prototype

Headers headers();

Source Link

Document

Get the headers of this request.

Usage

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);
}