HttpClient class

Index

Constructors

Public Properties

Public Methods

Constructors


constructor

⊕ new HttpClient(): HttpClient


Public Properties


beforeEachRequest

This option is deprecated and will be removed in future updates. Use 'onRequest' instead.

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


customPayload

● customPayload: ``


defaultHeaders

● defaultHeaders: HttpHeaders


onRequest

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


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>