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

14 lines (13 loc) 626 B
import { HttpRequest, HttpEvent, HttpXhrBackend } from "@angular/common/http"; import { Observable } from "rxjs"; import { NSFileSystem } from "@nativescript/angular"; import { NSHTTPXhr } from "./xhr"; import * as i0 from "@angular/core"; export declare class NsHttpBackEnd extends HttpXhrBackend { private nsFileSystem; constructor(xhrFactory: NSHTTPXhr, nsFileSystem: NSFileSystem); handle(req: HttpRequest<any>): Observable<HttpEvent<any>>; private handleLocalFileRequest; static ɵfac: i0.ɵɵFactoryDeclaration<NsHttpBackEnd, never>; static ɵprov: i0.ɵɵInjectableDeclaration<NsHttpBackEnd>; }