UNPKG

ngx-http-configure

Version:

Angular (6+) helpers for configure HTTP interceptors and services.

23 lines (22 loc) 738 B
import { HttpHeaders, HttpParams, HttpRequest } from '@angular/common/http'; declare type HttpObserve = 'body' | 'events' | 'response'; declare type HttpResponseType = 'arraybuffer' | 'blob' | 'json' | 'text'; export interface HttpStringMap<T = string | string[]> { [key: string]: T; } export interface HttpOptions { headers?: HttpHeaders | HttpStringMap; params?: HttpParams | HttpStringMap; reportProgress?: boolean; withCredentials?: boolean; } export interface HttpConfigureOptions extends HttpOptions { observe?: HttpObserve; responseType?: HttpResponseType; [key: string]: any; } export interface HttpReconfiguredOptions { config: Record<string, any>; request: HttpRequest<any>; } export {};