Module

std/http/server.ts>Response

Deno standard library
Go to Latest
interface Response
import { type Response } from "https://dotland.deno.dev/std@0.96.0/http/server.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
statusText: string
optional
headers: Headers
optional
body: Uint8Array | Deno.Reader | string
optional
trailers: () => Promise<Headers> | Headers