The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

HTML::Mason::Request - Mason Request Class

SYNOPSIS

    $m->abort (...)
    $m->comp (...)
    etc.

DESCRIPTION

The Request API is your gateway to all Mason features not provided by syntactic tags. Mason creates a new Request object for every web request. Inside a component you access the current request object via the global $m.

COMPONENT PATHS

The methods "comp" in Request, "comp_exists" in Request, "fetch_comp" in Request, and "process_comp_path" in Request take a component path as argument.

  • If the path is absolute (starting with a '/'), then the component is found relative to the component root.

  • If the path is relative (no leading '/'), then the component is found relative to the current component directory.

  • If the path matches both a subcomponent and file-based component, the subcomponent takes precedence.

METHODS

APACHE-ONLY METHODS

These additional methods are available when running Mason with mod_perl and the ApacheHandler.

AUTHOR

Jonathan Swartz, swartz@pobox.com

SEE ALSO

HTML::Mason::Component HTML::Mason::ApacheHandler

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 44:

You can't have =items (as at line 48) unless the first thing after the =over is an =item

Around line 430:

You can't have =items (as at line 434) unless the first thing after the =over is an =item