UNPKG

ng-http-caching

Version:

Cache for HTTP requests in Angular application.

14 lines (13 loc) 679 B
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; export declare class NgHttpCachingInterceptorService implements HttpInterceptor { private readonly cacheService; intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>; /** * Send http request (next handler) */ sendRequest(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>; static ɵfac: i0.ɵɵFactoryDeclaration<NgHttpCachingInterceptorService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<NgHttpCachingInterceptorService>; }