UNPKG

@klippa/nativescript-http

Version:

The best way to do HTTP requests in NativeScript, a drop-in replacement for the core HTTP with important improvements and additions like proper connection pooling, form data support and certificate pinning

35 lines 1.66 kB
import { NgModule } from "@angular/core"; import { HttpClientModule, HttpBackend } from '@angular/common/http'; import { NSFileSystem } from "@nativescript/angular"; import { NsHttpBackEnd } from "./ns-http-backend"; import { NSHTTPXhr } from "./xhr"; import * as i0 from "@angular/core"; export class NativeScriptHttpClientModule { } NativeScriptHttpClientModule.ɵfac = function NativeScriptHttpClientModule_Factory(t) { return new (t || NativeScriptHttpClientModule)(); }; NativeScriptHttpClientModule.ɵmod = i0.ɵɵdefineNgModule({ type: NativeScriptHttpClientModule }); NativeScriptHttpClientModule.ɵinj = i0.ɵɵdefineInjector({ providers: [ NSFileSystem, NsHttpBackEnd, NSHTTPXhr, { provide: HttpBackend, useExisting: NsHttpBackEnd }, ], imports: [HttpClientModule, HttpClientModule] }); (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NativeScriptHttpClientModule, [{ type: NgModule, args: [{ providers: [ NSFileSystem, NsHttpBackEnd, NSHTTPXhr, { provide: HttpBackend, useExisting: NsHttpBackEnd }, ], imports: [ HttpClientModule, ], exports: [ HttpClientModule, ] }] }], null, null); })(); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(NativeScriptHttpClientModule, { imports: [HttpClientModule], exports: [HttpClientModule] }); })(); //# sourceMappingURL=http-client.module.js.map