UNPKG

@opra/client

Version:
16 lines (15 loc) 408 B
import { kBackend } from '../constants.js'; import { FetchBackend } from './fetch-backend.js'; import { HttpClientBase } from './http-client-base.js'; /** * * @class OpraHttpClient */ export class OpraHttpClient extends HttpClientBase { constructor(serviceUrl, options) { super(new FetchBackend(serviceUrl, options)); } get defaults() { return this[kBackend].defaults; } }