std/http/mod.ts

Deno standard library
Go to Latest
interface Response
import { type Response } from "https://deno.land/std@0.81.0/http/mod.ts?s=Response";

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
[src]
optional
headers: Headers
[src]
optional
body: Uint8Array | Deno.Reader | string
[src]
optional
trailers: () => Promise<Headers> | Headers
[src]