UNPKG

@opra/client

Version:
27 lines (26 loc) 748 B
import { Backend } from '../core/backend.js'; import type { HttpHandler } from './interfaces/http-handler.js'; import type { HttpInterceptor } from './interfaces/http-interceptor.js'; /** * * @class HttpBackend */ export declare abstract class HttpBackend extends Backend implements HttpHandler { readonly serviceUrl: string; interceptors?: HttpInterceptor<any>[]; protected constructor(serviceUrl: string, options?: HttpBackend.Options); } /** * * @namespace HttpBackend */ export declare namespace HttpBackend { interface Options extends Backend.Options { } interface RequestInit extends Backend.RequestInit { method: string; url: string | URL; headers?: Headers; body?: any; } }