UNPKG

@cardboard-box/ngx-box

Version:

A collection of useful directives, components and services for angular

22 lines (21 loc) 1.15 kB
import { HttpClient, HttpResponse } from "@angular/common/http"; import { Observable } from "rxjs"; import { ConfigurationService } from "./config.service"; import { RxjsHttpResp } from './helpers/rxjs-http-resp.helper'; import { HttpOptions } from './helpers/http-options.helper'; import * as i0 from "@angular/core"; export declare class HttpService { http: HttpClient; config: ConfigurationService; constructor(http: HttpClient, config: ConfigurationService); fallback(url: string, group?: string, referer?: string): string; formatUrl(url: string): string; get<T>(url: string, options?: HttpOptions): RxjsHttpResp<T>; post<T>(url: string, body: any, options?: HttpOptions): RxjsHttpResp<T>; put<T>(url: string, body: any, options?: HttpOptions): RxjsHttpResp<T>; delete<T>(url: string, options?: HttpOptions): RxjsHttpResp<T>; download(url: string): Observable<HttpResponse<Blob>>; download(url: string, body: any): Observable<HttpResponse<Blob>>; static ɵfac: i0.ɵɵFactoryDeclaration<HttpService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<HttpService>; }