and may not reflect the reality of the current specification or any other revision to the specification. They are for demonstration purposes only and they may not even compile. 6
Server MUST begin sending the response from the App ASAP It is generally assumed that the application and server must run concurrently. (This is Perl 6, not some neolithic language without a decent threading model, after all.) Request Srv Application Response 30
Content-Type => 'text/plain' ], on { await %env<p6sgix.header.done>; .emit("HEADER WRITTEN OUT YAY!"); .done; await %env<p6sgix.body.done>; %env<p6sgi.errors>.emit("BODY WRITTEN OUT YAY!"); # TODO Lame. Come up with something better. } } } 38