UNPKG

@opra/client

Version:
15 lines (14 loc) 380 B
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 += '/'; } }