UNPKG

1.63 kBTypeScriptView Raw
1import { Injector } from '@angular/core';
2import { Observable } from 'rxjs';
3import { HttpInterceptor, HttpHandler, HttpRequest, HttpEvent, HttpHeaders } from '@angular/common/http';
4import { AbpHttpConfigurationService } from './abp-http-configuration.service';
5import * as i0 from "@angular/core";
6export declare class AbpHttpInterceptor implements HttpInterceptor {
7 private _injector;
8 protected configuration: AbpHttpConfigurationService;
9 private _tokenService;
10 private _utilsService;
11 private _logService;
12 constructor(configuration: AbpHttpConfigurationService, _injector: Injector);
13 intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
14 protected tryGetRefreshTokenService(): Observable<boolean>;
15 private isRefreshing;
16 private refreshTokenSubject;
17 private tryAuthWithRefreshToken;
18 protected normalizeRequestHeaders(request: HttpRequest<any>): HttpRequest<any>;
19 protected addXRequestedWithHeader(headers: HttpHeaders): HttpHeaders;
20 protected addAspNetCoreCultureHeader(headers: HttpHeaders): HttpHeaders;
21 protected addAcceptLanguageHeader(headers: HttpHeaders): HttpHeaders;
22 protected addTenantIdHeader(headers: HttpHeaders): HttpHeaders;
23 protected addAuthorizationHeaders(headers: HttpHeaders): HttpHeaders;
24 protected handleSuccessResponse(event: HttpEvent<any>): Observable<HttpEvent<any>>;
25 protected handleErrorResponse(error: any): Observable<never>;
26 private itemExists;
27 static ɵfac: i0.ɵɵFactoryDeclaration<AbpHttpInterceptor, never>;
28 static ɵprov: i0.ɵɵInjectableDeclaration<AbpHttpInterceptor>;
29}