1 | import { ConnectionBackend, RequestOptions, RequestOptionsArgs, Response, Http } from "@angular/http";
|
2 | import { Observable } from "rxjs/Rx";
|
3 | import { LocalStorageService } from 'angular-2-local-storage';
|
4 | import { LoaderService, HttpIntegrationService } from './index';
|
5 | export declare class InterceptedHttp extends Http {
|
6 | private localStorageService;
|
7 | private loaderService;
|
8 | private httpIntegrationService;
|
9 | constructor(backend: ConnectionBackend, defaultOptions: RequestOptions, localStorageService: LocalStorageService, loaderService: LoaderService, httpIntegrationService: HttpIntegrationService);
|
10 | get(url: string, options?: RequestOptionsArgs): Observable<Response>;
|
11 | post(url: string, body: string, options?: RequestOptionsArgs): Observable<Response>;
|
12 | put(url: string, body: string, options?: RequestOptionsArgs): Observable<Response>;
|
13 | delete(url: string, options?: RequestOptionsArgs): Observable<Response>;
|
14 | private getRequestOptionArgs(options?);
|
15 | private createAuthorizationHeader(headers);
|
16 | private onSuccess(res);
|
17 | private onError(res);
|
18 | private onEnd();
|
19 | private showLoader();
|
20 | private hideLoader();
|
21 | }
|