Function resRaw

  • Builds a raw (non-JSON) Response, e.g. for serving HTML admin pages.

    Parameters

    • htmlContent: string

      Raw response body.

    • contentType: string = "text/html"

      MIME type of the body; defaults to text/html. ;charset=UTF-8 is appended automatically.

    Returns Response

    A Response with the raw body and the configured headers.

Generated using TypeDoc