@opra/client
Version:
Opra Client package
15 lines (14 loc) • 380 B
JavaScript
import { Backend } from '../core/backend.js';
/**
*
* @class HttpBackend
*/
export class HttpBackend extends 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 += '/';
}
}