NAME

MVC::Neaf::Request::PSGI - Not Even A Framework: PSGI driver.

METHODS

new( env => $psgi_input )

Constructor. env MUST follow PSGI requirements.

do_get_client_ip

do_get_http_version()

do_get_scheme()

do_get_hostname()

do_get_port()

do_get_method()

Return GET/POST.

do_get_path()

Returns the path part of URI.

do_get_params()

Returns GET/POST parameters as a hash.

CAVEAT Plack::Request's multivalue hash params are ignored for now.

do_get_param_as_array

do_get_upload( "name" )

NOTE This garbles Hash::Multivalue.

do_get_header_in

do_get_body

do_reply( $status_line, \%headers, $content )

Send reply to client. Not to be used directly.

NOTE This function just returns its input and has no side effect, rather relying on PSGI calling conventions.

do_write( $data )

Write to socket in async content mode.

do_close()

Close client connection in async content mode.

LICENSE AND COPYRIGHT

This module is part of MVC::Neaf suite.

Copyright 2016-2023 Konstantin S. Uvarin khedin@cpan.org.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.