Skip to content

CallExternal

String? CallExternal(String id)

System · system operation · implicitly imported

Calls a registered external endpoint and returns its response.

id is looked up in the runtime options; the URL registered under it is requested with an HTTP GET and the response body is returned.

Parameters

  • String id — The id under which the external endpoint is registered in the runtime options.

Returns

String? — The response body, or null if no endpoint is registered under id.

Errors

A runtime type error if id is not a String.

See Also