ng-http-interceptor
Version:
> Http Interceptor library for Angular
29 lines (28 loc) • 1.33 kB
TypeScript
import { Http, XHRBackend, RequestOptions } from '@angular/http';
import { HttpInterceptorService } from './http-interceptor.service';
export declare class InterceptableHttpProxyService implements ProxyHandler<any> {
private http;
private httpInterceptorService;
private static _callStack;
private static _extractUrl(url);
constructor(http: Http, httpInterceptorService: HttpInterceptorService);
get(target: any, p: PropertyKey, receiver: any): any;
apply(target: any, thisArg: any, argArray?: any): any;
}
export declare const _proxyTarget: () => any;
export declare function _proxyFactory(http: any, interceptor: any): any;
export declare function proxyFactory(backend: any, options: any, interceptor: any): any;
export declare const InterceptableHttpProxyProviders: ({
provide: any;
useFactory: (ref: any) => any;
deps: any[];
} | {
provide: typeof Http;
useFactory: (backend: any, options: any, interceptor: any) => any;
deps: (typeof HttpInterceptorService | typeof XHRBackend | typeof RequestOptions)[];
})[];
export declare const InterceptableHttpProxyNoOverrideProviders: {
provide: typeof InterceptableHttpProxyService;
useFactory: (http: any, interceptor: any) => any;
deps: (typeof HttpInterceptorService | typeof Http)[];
}[];