Skip to main content

@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

ConstructorModifiersDescription
(constructor)(options)Initializes an http client

Methods

MethodModifiersDescription
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