HTMLResponse
Overview
See
Usage
- Node
- Deno
- Browser/ESM
import { HTMLResponse } from 'keywork/http/classes'
import { HTMLResponse } from 'https://deno.land/x/keywork/http/classes'
let { HTMLResponse } = await import('https://esm.sh/keywork/http/classes')
Hierarchy
↳
HTMLResponse
Constructors
constructor
new HTMLResponse
(htmlLike, request?, etag?, cacheControlOptions?, headersInit?)
Parameters
Name | Type | Description |
---|---|---|
htmlLike | BodyInit | |
request? | Request | |
etag? | string | |
cacheControlOptions? | CacheControlDirectives | |
headersInit? | HeadersInit |
Overrides
CachableResponse.constructor
Defined in
http/classes/HTMLResponse.ts:29
A response that returns a full HTML document.
HTMLResponse
automatically handles several types of HTML response bodies.