invoke
inline suspend operator fun <T : Any> invoke(body: T, crossinline requestOverride: HttpRequestBuilder.() -> Unit = {}): HttpResponse(source)
Invokes the edge function Note, if you want to serialize body to json, you need to add the HttpHeaders.ContentType header yourself.
Parameters
body
The body to send
requestOverride
Overrides the HTTP request
Throws
RestException
or one of its subclasses if receiving an error response
HttpRequestTimeoutException
if the request timed out
HttpRequestException
on network related issues
inline suspend operator fun invoke(crossinline requestOverride: HttpRequestBuilder.() -> Unit = {}): HttpResponse(source)
Invokes the edge function
Parameters
requestOverride
Overrides the HTTP request
Throws
RestException
or one of its subclasses if receiving an error response
HttpRequestTimeoutException
if the request timed out
HttpRequestException
on network related issues