Annotation Interface Http.CookieParam
- Enclosing class:
Http
Can also be used on Http.RequestParams record components.
Declarative server endpoints support List<T> for mandatory multi-value cookies and
Optional<List<T>> for optional multi-value cookies. A mandatory list is rejected when the named cookie is
missing, while an optional list is empty when the named cookie is missing. Cookies are not represented as
Parameters; a named cookie cannot be present with no values.
Declarative clients send cookie parameters as a single Cookie header. They send every value from
List<T> and send Optional<List<T>> only when the optional is present. A mandatory client
List<T> cookie parameter must contain at least one value.
Declarative client values must not be null. Use Optional.empty() to omit optional values.
Client list values must not contain null elements.
-
Required Element Summary
Required Elements
-
Element Details
-
value
-