@vegajs/http-client-adapter
Version:
A flexible, type-safe HTTP client adapter for TypeScript and JavaScript. Supports custom adapters and includes an out-of-the-box Axios adapter for easy HTTP request handling.
1 lines • 391 B
JavaScript
class t{constructor(t){this.adapter=t}addHeaders(t){this.adapter.addHeaders(t)}init(t){this.adapter.init(t)}delete(t,e){return this.adapter.delete(t,e)}get(t,e){return this.adapter.get(t,e)}patch(t,e,a){return this.adapter.patch(t,e,a)}post(t,e,a){return this.adapter.post(t,e,a)}put(t,e,a){return this.adapter.put(t,e,a)}}const e=e=>new t(e);export{t as HttpService,e as createHttpService};