Module

x/drash/mod.ts>Response#html

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
method Response.prototype.html
import { Response } from "https://dotland.deno.dev/x/drash@v2.7.0/mod.ts";

Set the body of this response as HTML.

Parameters

html: string
  • The HTML string to assign to the body.
optional
status: number
  • Status to respond with.
optional
headers: Record<string, string> = [UNSUPPORTED]
  • Any extra headers you wish to specify apart of the content-type header.