UNPKG

@opra/client

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