Constructors
Protected constructor
- new Http(url: string, fetchApi?: any): Http
Parameters
url: string
Optional fetchApi: any
Properties
Protected Optional Readonly fetchApi
fetchApi?: any
Protected Readonly url
url: string
Methods
Protected call
- call<D, M>(remoteCall: Promise<D>, mapper: (value: D) => M): Observable<M>
Type parameters
Parameters
remoteCall: Promise<D>
mapper: (value: D) => M
Returns Observable<M>
createNetworkTypeObservable
Static errorHandling
- errorHandling(error: any): Promise<Error>
Parameters
Returns Promise<Error>
Http extended by all http services