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

x/deno_nest/src/interfaces/mod.ts>Request

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

Properties

startTime: number
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>