UNPKG

1.34 kBTypeScriptView Raw
1import { Observable } from 'rxjs';
2import { MessageService } from '../services/message/message.service';
3import { LogService } from '../services/log/log.service';
4import { HttpResponse } from '@angular/common/http';
5import { IErrorInfo, IAjaxResponse } from '../models';
6import * as i0 from "@angular/core";
7export declare class AbpHttpConfigurationService {
8 private _messageService;
9 private _logService;
10 constructor(_messageService: MessageService, _logService: LogService);
11 defaultError: IErrorInfo;
12 defaultError401: IErrorInfo;
13 defaultError403: IErrorInfo;
14 defaultError404: IErrorInfo;
15 logError(error: IErrorInfo): void;
16 showError(error: IErrorInfo): any;
17 handleTargetUrl(targetUrl: string): void;
18 handleUnAuthorizedRequest(messagePromise: any, targetUrl?: string): void;
19 handleNonAbpErrorResponse(response: HttpResponse<any>): void;
20 handleAbpResponse(response: HttpResponse<any>, ajaxResponse: IAjaxResponse): HttpResponse<any>;
21 getAbpAjaxResponseOrNull(response: HttpResponse<any>): IAjaxResponse | null;
22 handleResponse(response: HttpResponse<any>): HttpResponse<any>;
23 blobToText(blob: any): Observable<string>;
24 static ɵfac: i0.ɵɵFactoryDeclaration<AbpHttpConfigurationService, never>;
25 static ɵprov: i0.ɵɵInjectableDeclaration<AbpHttpConfigurationService>;
26}