Function

send-downstream

Sends a response to the client that made the request passed to http-incoming.handle.

This method returns as soon as the response header begins sending to the client, and transmission of the response will continue in the background.

Data for the body must be written before calling this function. To start a response and write data to it afterwards, use send-downstream-streaming instead.

send-downstream: func(response: response, body: body) -> result​<_, error>;