MATSUNO★Tokuhiro > Amon2-3.62 > Amon2::Web::Request

Download:
Amon2-3.62.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source   Latest Release: Amon2-6.02

NAME ^

Amon2::Web::Request - Amon2 Request Class

DESCRIPTION ^

This is a child class of Plack::Request. Please see Plack::Request for more details.

AUTOMATIC DECODING ^

This class decode query/body parameters automatically. Return value of $req->param(), $req->body_parameters, etc. is the decoded value.

METHODS ^

$req->uri_with($args, $behavior)

Returns a rewritten URI object for the current request. Key/value pairs passed in will override existing parameters. You can remove an existing parameter by passing in an undef value. Unmodified pairs will be preserved.

You may also pass an optional second parameter that puts uri_with into append mode:

  $req->uri_with( { key => 'value' }, { mode => 'append' } );
$req->body_parameters_raw()
$req->query_parameters_raw()
$req->parameters_raw()
$req->param_raw()
$req->param_raw($key)
$req->param_raw($key => $val)

These methods are the accessor to raw values. 'raw' means the value is not decoded.

syntax highlighting: