UNPKG

sinch-rtc

Version:

RTC JavaScript/Web SDK

21 lines 622 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Context = void 0; class Context { constructor(context) { this.context = context; if (!this.context.init.method) throw Error("Invalid RequestContext"); this.method = this.context.init.method; this.url = new URL(this.context.url); this.content = this.context.init.body; } get headers() { return this.context.init.headers; } addHeader(header, value) { this.headers[header] = value; } } exports.Context = Context; //# sourceMappingURL=Context.js.map