NAME
MVC::Neaf::Request::CGI - CGI driver for Not Even A Framework.
DESCRIPTION
Mostly useful for command-line based debugging via MVC::Neaf::CLI. However, a Neaf app can run as a CGI script (unless, of course, it relies on in-memory storage somewhere).
See MVC::Neaf::Request for the API. Nothing really interesting here.
CGI is used internally.
new()
do_get_client_ip()
do_get_method()
Return GET/POST.
do_get_http_version
HTTP/1.0 or HTTP/1.1
NOTE This currently returns based on the presence of Host header, which is a HACK. Haven't found a better way yet...
do_get_scheme
Returns http or https.
do_get_hostname
Returns server hostname.
do_get_port
Returns server port.
do_get_params
do_get_path
do_get_upload( "name" )
do_get_header_in
do_reply( $status, $content )
do_write( $data )
Write to socket if async content serving is in use.
do_close()
Close client connection in async content mode.