@mapgear/geoapps-core > HttpClient
HttpClient class
An internal HttpClient that can be used to perform standard Http Get / Post requests that processes the json-body
Signature:export declare class HttpClient
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(options) | Initializes an http client |
Methods
Method | Modifiers | Description |
---|---|---|
DeleteJson(url) | Delete a remove resource | |
GetBlob(url, params) | Request a remote resource as blob | |
GetJson(url, params) | Request a remote resource with XmlHttpRequest GET-method | |
PostJson(url, data) | Send a payload to the remote resource | |
SetBearerToken(token) | Set a bearer token that is used for authenticating the requests that are performed by the HttpClient |