angular-http-interceptor
Version:
A interceptor module to http calls
9 lines (8 loc) • 351 B
TypeScript
import { Response } from "@angular/http";
import { Observable } from "rxjs/Observable";
import { RequestArgs } from "@angular/http/src/interfaces";
export declare abstract class Interceptor {
abstract before(request: RequestArgs): Observable<any>;
abstract after(response: Response): void;
abstract error(error: Response): void;
}