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

NAME

Eve::HttpRequest - an abstract HTTP request adapter.

SYNOPSIS

    use Eve::HttpRequest;

    my $request  = Eve::HttpRequest->new();

    my $uri = $request->get_uri();
    my $method = $request->get_method();
    my $param = $request->get_parameter(name => 'some_parameter');
    my @param_list = $request->get_parameter(name => 'some_list');
    my $cookie = $request->get_cookie(name => 'some_cookie');

DESCRIPTION

The class defines all methods that any request adapter must implement in order to be used.

METHODS

get_uri

Returns an URI instance built from an HTTP request URI.

get_method

Returns an HTTP method name.

get_parameter()

Returns a request parameter value or a list of values for a specified parameter name. When called in a scalar context, will return a single value, which for a multivalue parameter will result in a first value of the list:

    my $parameter_value = $request->get_parameter(name => 'some');

To receive a list of all values for a multivalue parameter, call the method in a list context:

    my @parameter_value_list = $request->get_parameter(name => 'some');

Arguments

name

get_parameter_hash()

Returns a hash reference with the requested parameter values.

get_cookie()

Returns a request cookie value for a specified name.

Arguments

name

SEE ALSO

Eve::Class

LICENSE AND COPYRIGHT

Copyright 2012 Igor Zinovyev.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

AUTHORS

Igor Zinovyev

1 POD Error

The following errors were encountered while parsing the POD:

Around line 134:

=over without closing =back