Methods
delete
-
Type parameters
Parameters
get
-
Type parameters
Parameters
patch
-
Type parameters
Parameters
post
-
Type parameters
Parameters
put
-
Type parameters
Parameters
setBaseUrl
- setBaseUrl(baseUrl: string): void
setCluster
- setCluster(cluster: string): void
setDefaultHeader
- setDefaultHeader(name: string, value: string): this
-
Parameters
-
name: string
-
value: string
Returns this
A basic http client with the option of adding default headers, and the option of using a baseUrl. Note: If the path given starts with
https://
, the baseUrl is ignored.It handles query parameters, and request body data which gets encoded as json if needed.
See HttpRequest.