class NestRequest
implements Request
import { NestRequest } from "https://deno.land/x/deno_nest@v3.3.1/modules/hono/mod.ts";
Constructors
new
NestRequest(context: HonoContext)Properties
originalContext: HonoContext
originalRequest: HonoRequest
Methods
cookie(name: string): Promise<string | undefined>
Get a specific cookie value
cookies(): Promise<Record<string, string>>
getOriginalRequest<T>(): T
header(name: string): string | undefined
Get a specific header value
json(): Promise<any>
param(name: string): string | undefined
Get a specific param value. such as /user/:id
params(): Record<string, string>
Get all path params as a key-value object
queries(name: string): string[]
Get all query params as a key-value object
query(name: string): string | undefined
Get a specific query param value
text(): Promise<string>