Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractResourceProvider Abstract

Hierarchy

Index

Constructors

Properties

httpClient: HttpClient

Methods

  • delete$<T>(endpoint?: string, url?: string, params?: Params, headers?: Headers, responseType?: ResponseType, body?: object): Observable<T>
  • getBlob$(endpoint?: string, url?: string, params?: Params, headers?: Headers): Observable<HttpEvent<Blob>>
  • post$<T>(endpoint?: string, url?: string, body?: object, params?: Params, headers?: Headers, responseType?: ResponseType): Observable<T>
  • postWithEvent$<T>(endpoint?: string, url?: string, body?: object, params?: Params, headers?: Headers, responseType?: ResponseType): Observable<HttpEvent<T>>
  • put$<T>(endpoint?: string, url?: string, body?: object, params?: Params, headers?: Headers, responseType?: ResponseType): Observable<T>
  • addLastSlash(link: string): string
  • combineParams(highPriorityParams: Params, lowPriorityParams: Params): HttpParams
  • Combines two instances of Params type into one. If a parameter is declared in both instances uses the value of the highPriorityParams in the result.

    Parameters

    • highPriorityParams: Params

      parameters with the higher priority

    • lowPriorityParams: Params

      parameters with the lower priority

    Returns HttpParams

    combination of botch parameters. Uses the value of the higher priority parameters if the keys are in conflict.

  • convertHttpParamsToObjectParams(params: HttpParams): ObjectParams
  • removeFirstSlash(link: string): string
  • sanitizeUrl(endpoint?: string, url?: string): string

Generated using TypeDoc