@kephas/angular
Version:
Provides integration capabilities with Angular.
19 lines (18 loc) • 742 B
TypeScript
import { HttpInterceptor as AngularHttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
import { Observable } from 'rxjs';
/**
* Base class for HTTP interceptors.
*
* @export
* @extends {AngularHttpInterceptor}
*/
export declare abstract class HttpInterceptor implements AngularHttpInterceptor {
/**
* Identifies and handles a given HTTP request.
* @param req The outgoing request object to handle.
* @param next The next interceptor in the chain, or the backend
* if no interceptors remain in the chain.
* @returns An observable of the event stream.
*/
abstract intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
}