import { HonoRequest } from "https://dotland.deno.dev/x/hono@v4.2.6/mod.ts";
Type Parameters
optional
I extends Input["out"] = { }Methods
private
getAllDecodedParams(): Record<string, string>private
getDecodedParam(key: string): string | undefinedprivate
getParamValue(paramKey: any): string | undefinedaddValidatedData(target: keyof ValidationTargets, data: { })
blob(): Promise<Blob>
formData(): Promise<FormData>
header(): Record<string, string>
param<P2 extends string = P>(key: RemoveQuestion<ParamKeys<P2>>): UndefinedIfHavingQuestion<ParamKeys<P2>>
.req.param()
gets the path parameters.
parseBody<T extends BodyData = BodyData>(options?: ParseBodyOptions): Promise<T>
.parseBody()
can parse Request body of type multipart/form-data
or application/x-www-form-urlencoded
queries(key: string): string[] | undefined
.queries()
can get multiple querystring parameter values, e.g. /search?tags=A&tags=B
queries(): Record<string, string[]>
query(): Record<string, string>
valid<T extends keyof I & keyof ValidationTargets>(target: T): InputToDataByTarget<I, T>