Skip to main content

get

Performs a GET request to the specified URL with automatic error handling. Throws HomunculusApiError on non-OK responses.

Parameters

ParameterTypeDescription
urlURLThe URL to send the GET request to

Returns

Promise<Response>

Example

const response = await host.get(host.createUrl("vrm"));
const vrms = await response.json();