Skip to content
English

completeHtml

completeHtml(status, body, headers?): HttpResponse

Defined in: src/http/Html.ts:87

Build an HTML response: text/html; charset=utf-8 plus X-Content-Type-Options: nosniff (so the declared type is honoured). Accepts a SafeHtml (the safe path) or a raw string (the caller asserting it is safe). Supplied headers win on key collision.

number

string | SafeHtml

Record<string, string>

HttpResponse