Skip to main content

HTMLResponse

Overview

A response that returns a full HTML document.

HTMLResponse automatically handles several types of HTML response bodies.

See

Usage

import { HTMLResponse } from 'keywork/http/classes'

Hierarchy

Constructors

constructor

new HTMLResponse

(htmlLike, request?, etag?, cacheControlOptions?, headersInit?)

Parameters

NameTypeDescription
htmlLikeBodyInit
request?Request
etag?string
cacheControlOptions?CacheControlDirectives
headersInit?HeadersInit

Overrides

CachableResponse.constructor

Defined in

http/classes/HTMLResponse.ts:29