Net::HTTP::Knork::Request - HTTP request object from SPORE env hash
version 0.11
use Net::HTTP::Knork::Request; my $request = Net::HTTP::Knork::Request->new($env);
Net::HTTP::Knork::Request create a HTTP request Based mostly on Net::HTTP::Spore::Request, except that it uses Moo.
my $req = Net::HTTP::Knork::Request->new();
Creates a new Net::HTTP::Knork::Request object.
my $env = $request->env;
Get the environment for the given request
my $method = $request->method;
Get the HTTP method for the given request
my $port = $request->port;
Get the HTTP port from the URL
my $script_name = $request->script_name;
Get the script name part from the URL
my $path = $request->path_info;
Get the path info part from the URL
my $request_uri = $request->request_uri;
Get the request uri from the URL
my $scheme = $request->scheme;
Get the scheme from the URL
my $secure = $request->secure;
Return true if the URL is HTTPS
my $input = $request->input;
Get the content that will be posted
Emmanuel Peroumalnaïk
This software is copyright (c) 2014 by E. Peroumalnaik.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'Peroumalnaïk'. Assuming UTF-8
To install Net::HTTP::Knork, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::HTTP::Knork
CPAN shell
perl -MCPAN -e shell install Net::HTTP::Knork
For more information on module installation, please visit the detailed CPAN module installation guide.