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

x/levo/src/deps.ts>server.Response

Server side rendering with The Elm Architecture in Deno
Latest
interface server.Response
import { type server } from "https://deno.land/x/levo@v0.0.27/src/deps.ts";
const { Response } = server;

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