UNPKG

@hpe/angular-toolkit

Version:

Hewlett-Packard Enterprise : Angular toolkit for rapid project development

21 lines (20 loc) 887 B
import { HttpClient } from "@angular/common/http"; import { DomSanitizer } from "@angular/platform-browser"; import { SafeUrl } from "@angular/platform-browser/src/security/dom_sanitization_service"; import { Observable } from "rxjs"; import { EventBusService } from "./eventbus-service"; export declare class HttpService { private httpClient; private eventBusService; private domSanitizer; private openRequests; constructor(httpClient: HttpClient, eventBusService: EventBusService, domSanitizer: DomSanitizer); readonly loading: boolean; getObject(url: string, options?: any): Observable<any>; getBlob(url: string, options?: any): Observable<any>; postObject(url: string, object: any, options?: any): Observable<any>; getSanitizedUrl(url: string): SafeUrl; private handleError(response); private showLoader(); private hideLoader(); }