Resource
response-outparam
Represents the ability to send an HTTP Response.
resource response-outparam;F set
set: func(param: response-outparam, response: result<outgoing-response, error-code>);Set the value of the response-outparam to either send a response,
or indicate an error.
This method consumes the response-outparam to ensure that it is
called at most once. If it is never called, the implementation
will respond with an error.
The user may provide an error to response to allow the
implementation determine how to respond with an HTTP error response.