NAME
MKDoc::Core::Request - MKDoc request object.
SUMMARY
Just like CGI.pm, with a few additions.
See perldoc CGI for the base CGI OO API.
API
$self->instance();
Returns the MKDoc::Core::Request singleton - or creates it if necessary.
$self->clone();
Clones the current object and returns the copy.
$self->param_eq ($param_name, $param_value);
Returns TRUE if the parameter named $param_name returns a value of $param_value.
$self->param_equals ($param_name, $param_value);
Alias for param_eq().
$self->path_info_eq ($value);
Returns TRUE if $ENV{PATH_INFO} equals $value, FALSE otherwise.
$self->path_info_equals ($param_name, $param_value);
Alias for path_info_eq().
$self->path_info_starts_with ($value);
Returns TRUE if $ENV{PATH_INFO} starts with $value, FALSE otherwise.
$self->method();
Returns the current request method being used, i.e. normally HEAD, GET or POST.
$self->is_upload ($param_name);
Returns TRUE if $param_name is an upload, FALSE otherwise.
AUTHOR
Copyright 2003 - MKDoc Holdings Ltd.
Author: Jean-Michel Hiver <jhiver@mkdoc.com>
This module is free software and is distributed under the same license as Perl itself. Use it at your own risk.
SEE ALSO
Petal: http://search.cpan.org/author/JHIVER/Petal/
MKDoc: http://www.mkdoc.com/
Help us open-source MKDoc. Join the mkdoc-modules mailing list:
mkdoc-modules@lists.webarch.co.uk