UNPKG

@ynmstudio/utils

Version:
16 lines (15 loc) 762 B
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor, HttpInterceptorFn } from '@angular/common/http'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; /** Inject With Credentials into the request */ export declare class CraftSecurityInterceptor implements HttpInterceptor { constructor(); intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>; static ɵfac: i0.ɵɵFactoryDeclaration<CraftSecurityInterceptor, never>; static ɵprov: i0.ɵɵInjectableDeclaration<CraftSecurityInterceptor>; } export declare const craftSecurityInterceptor: HttpInterceptorFn; /** * @deprecated Use `craftSecurityInterceptor` instead */ export declare const CraftSecurityInterceptorFn: HttpInterceptorFn;