>
> One thing that could be specified clearly though is how a callable can
> determine if the response part is empty (not created by any callable
> prior to itself). As the implementation is made today it is possible to
> check if the status field has the value 'undefined'. But according to
> the type declaration it can only be a tuple {integer(),string()}. So
> either the type declaration is extended to undefined as well or maybe
> the empty_response() creates a {404,"Not Found"} status header for
> instance, and this would serve as an indicator that no callable before
> the current has generated a response, or at least not one with any content.
>
Maybe we might leave handling empty responses to the server gateway:
if the result of the request handle is an empty response than
ewgi_mochiweb (or whatever) can translate it to a 404 response.
And IMHO 'undefined' for the status i a good representation of the empty
response.
best regards,
filippo