class NestRequest
implements Request
import { NestRequest } from "https://deno.land/x/deno_nest@v3.5.0/modules/oak/mod.ts";
Constructors
new
NestRequest(context: OakContext)Properties
originalContext: OakContext
originalRequest: OakRequest
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 multiple query param values
query(name: string): string | undefined
Get a specific query param value
text(): Promise<string>