UNPKG

flagpole

Version:

Simple and fast DOM integration, headless or headful browser, and REST API testing framework.

21 lines 596 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.XmlResponse = void 0; const htmlresponse_1 = require("./htmlresponse"); const cheerio = require("cheerio"); class XmlResponse extends htmlresponse_1.HtmlResponse { get responseTypeName() { return "XML"; } get responseType() { return "xml"; } init(httpResponse) { super.init(httpResponse); this.cheerio = cheerio.load(httpResponse.body, { xmlMode: true, }); } } exports.XmlResponse = XmlResponse; //# sourceMappingURL=xmlresponse.js.map