Simple wrapper to read and decode an HTTP header from `In', call
:Goal while watching for exceptions and send the result to the
stream `Out'.
The goal is assumed to write the reply to current_output
preceeded by an HTTP header, closed by a blank line. The header
must contain a Content-type: <type> line. It may optionally
contain a line Transfer-encoding: chunked
to request chunked
encoding.
Options:
- request(-Request)
- Return the full request to the caller
- peer(+Peer)
- IP address of client
- Arguments:
-
Close | - Unified to one of close , Keep-Alive or
spawned(ThreadId) . |