Apache-Action

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    $action->run()
        Search the HTTP arguments in the Request, and run an action, if
        appropriate.

    $action->param($name)
        Return the HTTP parameter named.

    $action->params($name)
        Return a hashref of all HTTP parameters, copying the data.

    $action->upload
        Return an Apache::Upload object as named.

    $action->session($name)
        Return data from the session hash, as named.

    $action->session($name, $value)
        Store data in the session hash, as named.

    $action->error($error)
        Record that an error happened during this execution. The action

lib/Apache/Action.pm  view on Meta::CPAN

}

sub params {
	my $self = shift;
	# Tied hash to Apache::Table
	my $parms = $self->{Request}->parms;
	# Make a copy
	return { %{ $parms } };
}

sub upload {
	my $self = shift;
	# scalar/array context is passed on to this request.
	return $self->{Request}->upload(@_);
}

=head1 NAME

Apache::Action - A method dispatch mechanism for Apache

=head1 SYNOPSIS

	# An Apache handler to manage the cycle.
	package My::Apache::Handler;

lib/Apache/Action.pm  view on Meta::CPAN

appropriate.

=item $action->param($name)

Return the HTTP parameter named.

=item $action->params($name)

Return a hashref of all HTTP parameters, copying the data.

=item $action->upload

Return an Apache::Upload object as named.

=item $action->session($name)

Return data from the session hash, as named.

=item $action->session($name, $value)

Store data in the session hash, as named.



( run in 2.167 seconds using v1.01-cache-2.11-cpan-b16cb0d3907 )