BrowserInternal

Internal HTTP utilities for the browser library.

Members

(static) API_URL :string

The base URL for the backend API.

Type:
  • string

(static) VERSION :string

The current version of the library.

Type:
  • string

(static) developer :string

The developer signature for the library.

Type:
  • string

(static) issues :string

The URL for reporting issues.

Type:
  • string

Methods

(async, static) httpGet(endpoint, param) → {Promise.<any>}

Performs a GET request to the backend API.

Parameters:
NameTypeDescription
endpointstring

The API endpoint to call.

paramstring

The parameter (usually a URL or search query) to pass to the endpoint.

Throws:

If the HTTP request fails.

Type
Error
Returns:

A promise that resolves to the JSON or text response from the API.

Type: 
Promise.<any>