类 HeadersRequestCondition

所有已实现的接口:
RequestCondition<HeadersRequestCondition>

public final class HeadersRequestCondition extends AbstractRequestCondition<HeadersRequestCondition>
A logical conjunction (' && ') request condition that matches a request against a set of header expressions with syntax defined in RequestMapping.headers().

Expressions passed to the constructor with header names 'Accept' or 'Content-Type' are ignored. See ConsumesRequestCondition and ProducesRequestCondition for those.

从以下版本开始:
4.0
作者:
Arjen Poutsma, Rossen Stoyanchev