Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_nest/src/interfaces/context.interface.ts>Request

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
interface Request
import { type Request } from "https://deno.land/x/deno_nest@v3.3.1/src/interfaces/context.interface.ts";

Properties

states: Record<string, any>

Methods

getOriginalRequest<T>(): T
getter
url(): string
getter
method(): string
headers(): Headers
header(name: string): string | undefined
cookies(): Promise<Record<string, string>>
params(): Record<string, string>
param(name: string): string | undefined
queries(name: string): string[]

Get multiple query param values

query(name: string): string | undefined

Get a specific query param value

json(): Promise<any>
text(): Promise<string>
formData(): Promise<FormData>