++ed by:
DOY SKAUFMAN GENEHACK ADAMJS STEVAN

13 PAUSE users
11 non-PAUSE users.

Jesse Luehrs
and 9 contributors

NAME

OX::Request - request object for OX

VERSION

version 0.14

SYNOPSIS

  use OX::Request;

  my $req = OX::Request->new(env => $env);

DESCRIPTION

This class is a simple subclass of Web::Request which adds a couple more features. It adds some methods to access various useful parts of the routing process, and it also sets the default_encoding to UTF-8.

METHODS

mapping

This returns the mapping of the current router match, if you are using Path::Router as the router.

uri_for($route)

This calls uri_for on the given route hashref, and returns the absolute URI path that results (including prepending SCRIPT_NAME). If a string is passed rather than a hashref, this is treated as equivalent to { name => $route }.

AUTHORS

  • Stevan Little <stevan.little@iinteractive.com>

  • Jesse Luehrs <doy@tozt.net>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Infinity Interactive.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.