UNPKG

hono

Version:

Web framework built on Web Standards

17 lines (16 loc) 938 B
/** * @module * URL utility. */ export type Pattern = readonly [string, string, RegExp | true] | '*'; export declare const splitPath: (path: string) => string[]; export declare const splitRoutingPath: (routePath: string) => string[]; export declare const getPattern: (label: string) => Pattern | null; export declare const getPath: (request: Request) => string; export declare const getQueryStrings: (url: string) => string; export declare const getPathNoStrict: (request: Request) => string; export declare const mergePath: (...paths: string[]) => string; export declare const checkOptionalParameter: (path: string) => string[] | null; export declare const getQueryParam: (url: string, key?: string) => string | undefined | Record<string, string>; export declare const getQueryParams: (url: string, key?: string) => string[] | undefined | Record<string, string[]>; export declare const decodeURIComponent_: typeof decodeURIComponent;