bindings library

Request binding utilities for Routed.

Import this when you need to bind request payloads (JSON, forms, query parameters) to data classes.

Classes

Binding
The Binding interface, analogous to Gin's "Binding". This interface defines the contract for binding and validating request data.
FormBinding
A class that handles form binding and validation.
JsonBinding
A class that handles JSON binding and validation for incoming requests.
MultipartBinding
A binding for handling multipart form data.
QueryBinding
A class that handles the binding and validation of query parameters.
UriBinding
A class that binds URI parameters to a given instance and validates them.
XmlBinding
A class that handles XML binding for the routing engine.

Enums

MimeType
Common MIME types (mirroring Gin's constants). These are used to determine the type of data in the request body.

Functions

defaultBinding(String method, String contentType) Binding
Return a default binding given method and contentType.