Skip to main content
Module

x/keywork/http/mod.ts>HTMLResponse

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

A response that returns a full HTML document.

HTMLResponse automatically handles several types of HTML response bodies.

Constructors

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