Annotation Interface Http.FormParam
- Enclosing class:
Http
Can also be used on Http.RequestParams record components.
Declarative endpoints and clients should use this annotation with
@Http.Consumes("application/x-www-form-urlencoded"). Form parameters use the request entity and cannot be
combined with Http.Entity on the same declarative method.
Declarative server endpoints support List<T> for mandatory multi-value form parameters and
Optional<List<T>> for optional multi-value form parameters. A mandatory list is rejected when the named
form parameter is missing, while an optional list is empty when the named form parameter is missing. If the form
parameter name is present without any values, the injected list is empty.
Declarative clients send every value from List<T> and send Optional<List<T>> only when the
optional is present.
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
-