cookieMatches

Requires a request cookie with name to match predicate.

The predicate receives the decoded cookie value, or null when the cookie is absent. Request cookies contain only name/value pairs; response cookie attributes such as Path, HttpOnly, Secure, or SameSite cannot be matched from an incoming request.

Return

This builder instance.

Parameters

name

Cookie name.

predicate

A Predicate applied to the decoded cookie value, or null when absent.