The type of the parsed JSON body.
The type of the parsed form fields.
The type of the parsed path parameters.
The type of the parsed query parameters.
The type of the parsed headers.
The expected file definitions.
A record mapping cookie names to their value types.
IMPORT_PATH: "@daiso-tech/core/http-router/contracts"
Parses and returns all cookies, validated and transformed by the cookie schema.
Retrieves a single validated cookie value by name.
The name of the cookie.
The validated cookie value.
Parses and returns all form fields from Request.formData.
Retrieves a single form field by name from Request.formData.
The name of the form field.
Returns all validated uploaded files keyed by field name from Request.formData.
Each field resolves to an IHttpFileCollection.
Retrieves the validated uploaded file collection by field name from Request.formData.
The name of the file field.
Parses and returns all request headers.
Retrieves a single header value by name.
The name of the header.
Parses and returns all path parameters.
Retrieves a single path parameter by name.
The name of the path parameter.
Parses and returns all query string parameters.
Retrieves a single query string parameter by name.
The name of the query parameter.
A validated, type-safe view of the incoming HTTP request.
Returned by withSchema, this type provides schema-validated access to all request data sources — JSON body, form fields, uploaded files, path parameters, query parameters, headers, and cookies — with full type inference from the provided schemas.
Each accessor method is overloaded: calling with no arguments returns the entire validated record, while passing a specific field name returns only that field's value (with
nullfor undefined optional fields).