Skip to main content
Module

x/keywork/mod.ts>HTTP.HTMLResponse

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Go to Latest
class HTTP.HTMLResponse
Re-export
import { HTTP } from "https://deno.land/x/keywork@v6.0.1/mod.ts";
const { HTMLResponse } = HTTP;

A response that returns a full HTML document.

HTMLResponse automatically handles several types of HTML response bodies.

Constructors

new
HTMLResponse(
htmlLike: BodyInit,
request?: globalThis.Request,
etag?: string,
cacheControlOptions?: CacheControlDirectives,
headersInit?: HeadersInit,
)