import { HttpHeaders, HttpParams } from '@angular/common/http'; import { RhSafeAny } from 'rh-base/model'; export type RhHttpOptions = { headers?: HttpHeaders | { /** 是否忽略工厂代码拦截器(不会自动添加工厂代码) */ ignoreFactoryCode?: '0' | '1'; /** 是否忽略节流拦截器 */ ignoreThrottle?: '0' | '1'; /** 是否禁用错误冒泡 */ ignoreBubble?: '0' | '1'; [header: string]: string | string[] | RhSafeAny; }; observe?: 'body'; params?: HttpParams | { [param: string]: string | string[]; }; reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; };