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

x/oak/response.ts

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Latest
import * as oak from "https://deno.land/x/oak@v17.1.2/response.ts";

Contains the Response abstraction used by oak.

Most end users would not need to directly access this module.

Classes

An interface to control what response will be sent when the middleware finishes processing the request.

Variables

A symbol that indicates to response.redirect() to attempt to redirect back to the request referrer. For example:

Type Aliases

The various types of bodies supported when setting the value of .body on a Response

A function that when invoked returns or resolves to a ResponseBody.