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

x/deno_koa/test/test_deps.ts>Response

A middleware framework for Deno's http serve🦕. Transplanted from Koa with ❤️
Latest
interface Response
import { type Response } from "https://deno.land/x/deno_koa@v1.0.4/test/test_deps.ts";

Interface of HTTP server response. If body is a Reader, response would be chunked. If body is a string, it would be UTF-8 encoded by default.

Properties

optional
status: number
optional
headers: Headers
optional
body: Uint8Array | Deno.Reader | string
optional
trailers: () => Promise<Headers> | Headers