HttpClient class

Index

Constructors

Public Properties

Public Methods

Protected Methods

Constructors


constructor

⊕ new HttpClient(): HttpClient


Public Properties


beforeEachRequest

● beforeEachRequest?: (request: HttpRequest) => void


customPayload

● customPayload: ``


defaultHeaders

● defaultHeaders: HttpHeaders


Public Methods


delete

▸ delete(url: string,data?: any,options?: HttpRequestOptions): HttpActionResult<T>

Parameters:

Returns HttpActionResult<T>


get

▸ get(url: string,options?: HttpRequestOptions): HttpActionResult<T>

Parameters:

Returns HttpActionResult<T>


post

▸ post(url: string,data: any,options?: HttpRequestOptions): HttpActionResult<T>

Parameters:

Returns HttpActionResult<T>


put

▸ put(url: string,data: any,options?: HttpRequestOptions): HttpActionResult<T>

Parameters:

Returns HttpActionResult<T>


send

▸ send(method: HttpMethod,url: string,data?: any,options?: HttpRequestOptions): HttpActionResult<T>

Parameters:

Returns HttpActionResult<T>


Protected Methods


getEqJsVersionHeader

▸ getEqJsVersionHeader(): any

Returns any