Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/sinco/tests/deps.ts>Drash.Response#xml

Browser Automation and Testing Tool for Deno, written in full TypeScript
Latest
method Drash.Response.prototype.xml
import { Drash } from "https://deno.land/x/sinco@v4.1.0/tests/deps.ts";
const { Response } = Drash;

Set the body of this response as XML.

Parameters

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