Skip to main content
Module

std/http/mod.ts>Response

Deno standard library
Go to Latest
interface Response
Re-export
import { type Response } from "https://deno.land/std@0.41.0/http/mod.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 | Reader | string
optional
trailers: () => Promise<Headers> | Headers