angular-http-interceptor
Version:
A interceptor module to http calls
9 lines (8 loc) • 523 B
TypeScript
import { Provider, ModuleWithProviders, InjectionToken } from '@angular/core';
import { Http, XHRBackend, RequestOptions } from '@angular/http';
import { Interceptor } from './interfaces';
export declare const INTERCEPTORS: InjectionToken<Interceptor>;
export declare class InterceptorModule {
static withInterceptors(interceptorTypes: Provider[]): ModuleWithProviders;
}
export declare function httpFactory(httpInterceptors: Interceptor[], connectionBackend: XHRBackend, requestOptions: RequestOptions): Http;