@serenity-js/core
Version:
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
14 lines • 529 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.HTTPRequestResponse = void 0;
const JSONData_1 = require("./JSONData");
/**
* An artifact describing a HTTP request/response pair.
*/
class HTTPRequestResponse extends JSONData_1.JSONData {
static fromJSON(value) {
return new HTTPRequestResponse(Buffer.from(JSON.stringify(value, undefined, 0), 'utf8').toString('base64'));
}
}
exports.HTTPRequestResponse = HTTPRequestResponse;
//# sourceMappingURL=HTTPRequestResponse.js.map
;