Function

handle

Handle the given request.

This function is called once per sandbox. When it returns, the sandbox exits. To opt into receiving multiple requests in a single sandbox, use http-downstream.next-request.

To send a response for the given request, use send-downstream, or to stream the response body after the response has been initiated, use send-downstream-streaming.

handle: func(request: request, body: body) -> result​<_, _>;