Function

send-async

Begins sending the request to the given backend server, and returns a pending-response that can yield the backend response or an error.

This method returns as soon as the request begins sending to the backend, and transmission of the request body and headers will continue in the background.

This method allows for sending more than one request at once and receiving their responses in arbitrary orders. See pending-response for more details on how to wait on, poll, or select between pending responses.

This method is also useful for sending requests where the response is unimportant, but the request may take longer than the Compute program is able to run, as the request will continue sending even after the program that initiated it exits.

send-async: func(request: request, body: body, backend: borrow​<backend>) -> result​<pending-response, error>;