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

x/deno_nest/modules/hono/mod.ts>NestResponse

Refer to nestjs to realize some common functions for Deno, support hono and oak
Latest
class NestResponse
implements Response
import { NestResponse } from "https://deno.land/x/deno_nest@v3.15.1/modules/hono/mod.ts";

Constructors

new
NestResponse(context: HonoContext, cookies: NestCookies)

Properties

body:
| string
| object
| number
| boolean
| null
headers: Headers
originalContext: HonoContext
status: Status
readonly
statusText

Methods

redirect(url: string | REDIRECT_BACK, status?: RedirectStatusCode): void
render(): Promise<HonoResponse>