- Refactor HttpKernel and related interfaces to support generic contexts. - Add typed query parameters, route params, and state to IContext. - Introduce HttpMethod type for stricter HTTP method validation. - Update RouteBuilder and middleware to handle generic contexts. - Improve test cases to verify compatibility with new types. Signed-off-by: Max P. <Mail@MPassarello.de>
13 lines
529 B
TypeScript
13 lines
529 B
TypeScript
/**
|
|
* Represents the parsed query parameters from the request URL.
|
|
*
|
|
* Query parameters originate from the URL search string (e.g. `?filter=active&tags=ts&tags=deno`)
|
|
* and may contain single or multiple values per key.
|
|
*
|
|
* All values are expressed as strings or arrays of strings, depending on how often
|
|
* the key occurs. This structure preserves the raw semantics of the query.
|
|
*
|
|
* For normalized single-value access, prefer custom DTOs or wrapper utilities.
|
|
*/
|
|
export type Query = Record<string, string | string[]>;
|