@opra/client
Version:
Opra Client package
19 lines (18 loc) • 534 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HttpBackend = void 0;
const backend_js_1 = require("../core/backend.js");
/**
*
* @class HttpBackend
*/
class HttpBackend extends backend_js_1.Backend {
constructor(serviceUrl, options) {
super(options);
const u = new URL(serviceUrl);
this.serviceUrl = u.toString().split('?')[0].split('#')[0];
if (!this.serviceUrl.endsWith('/'))
this.serviceUrl += '/';
}
}
exports.HttpBackend = HttpBackend;