method IResponse.html
Since 0.2.0
IResponse.html(body: string): HandlerResult

Sends an HTML response.

The text/html; charset=utf-8 media type is set explicitly — a bare text/html lets a browser sniff the encoding.

Parameters

body: string

The HTML document text

Return Type

The handler result

Usage

import { type IResponse } from "common/src/index.ts";