prepareInvoke

inline suspend fun prepareInvoke(function: String, region: FunctionRegion = config.defaultRegion, crossinline builder: HttpRequestBuilder.() -> Unit = {}): HttpStatement(source)

Prepares an invocation of a remote edge function, returning an HttpStatement for streaming or other advanced response handling. The authorization token is automatically added to the request.

Parameters

function

The function to invoke. If name of the function is renamed, use the slug after URL

region

The region where the function is invoked

builder

The request builder to configure the request