class NestRequest
implements Request
import { NestRequest } from "https://deno.land/x/deno_nest@v3.15.1/modules/hono/mod.ts";
Constructors
new
NestRequest(context: HonoContext, cookies: NestCookies)Properties
originalContext: HonoContext
originalRequest: HonoRequest
Methods
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>