UNPKG

angular-interceptors

Version:

Useful interceptors for [Angular](https://github.com/angular/angular)

15 lines (14 loc) 634 B
import { HttpEvent, HttpHandler, HttpInterceptor } from '@angular/common/http'; import { HttpRequest } from '@angular/common/http'; import { InjectionToken } from '@angular/core'; import { Observable } from 'rxjs'; export declare class EnsureHttpsInterceptor implements HttpInterceptor { cache: Map<string, Observable<HttpEvent<any>>>; constructor(); intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>; } export declare const ENSURE_HTTPS_INTERCEPTOR_PROVIDER: { provide: InjectionToken<HttpInterceptor[]>; useClass: typeof EnsureHttpsInterceptor; multi: boolean; };