import { HonoRequest } from "https://deno.land/x/hono@v3.1.4/request.ts";
Constructors
Type Parameters
optional
I extends Input["out"] = { }Properties
private
validatedData: [K in keyof ValidationTargets]?: { }raw: Request
Methods
addValidatedData(target: keyof ValidationTargets, data: { })
blob()
cookie(key: string): string | undefined
formData()
header(name: string): string | undefined
header(): Record<string, string>
json<T = any>(): Promise<T>
param(key: RemoveQuestion<ParamKeys<P>>): UndefinedIfHavingQuestion<ParamKeys<P>>
queries(key: string): string[] | undefined
queries(): Record<string, string[]>
query(key: string): string | undefined
query(): Record<string, string>
text()
valid<T extends keyof ValidationTargets = I extends Record<infer R, unknown> ? R extends keyof ValidationTargets ? R : never : never>(target: T): InputToDataByTarget<I, T>
valid(): never