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:
- url:
string
- data:
any
, Optional - options: HttpRequestOptions, Optional
Returns HttpActionResult<T
>
get
▸ get(url: string
,options?: HttpRequestOptions): HttpActionResult<T
>
Parameters:
- url:
string
- options: HttpRequestOptions, Optional
Returns HttpActionResult<T
>
post
▸ post(url: string
,data: any
,options?: HttpRequestOptions): HttpActionResult<T
>
Parameters:
- url:
string
- data:
any
- options: HttpRequestOptions, Optional
Returns HttpActionResult<T
>
put
▸ put(url: string
,data: any
,options?: HttpRequestOptions): HttpActionResult<T
>
Parameters:
- url:
string
- data:
any
- options: HttpRequestOptions, Optional
Returns HttpActionResult<T
>
send
▸ send(method: HttpMethod,url: string
,data?: any
,options?: HttpRequestOptions): HttpActionResult<T
>
Parameters:
- method: HttpMethod
- url:
string
- data:
any
, Optional - options: HttpRequestOptions, Optional
Returns HttpActionResult<T
>