Common
NAME
HTTP::Request::Common - Construct common HTTP::Request objects
SYNOPSIS
use HTTP::Request::Common;
my $ua = HTTP::UserAgent.new();
my $res = $ua.request(GET 'http://google.com/');
DESCRIPTION
This module provide functions that return newly created "HTTP::Request" objects. These functions are usually more convenient to use than the standard "HTTP::Request" constructor for the most common requests. The following functions are provided:
GET $url, Header =
Value...>
The GET() function returns an HTTP::Request
object initialized with
the "GET" method and the specified URL.
HEAD $url
HEAD $url, Header =
Value,...>
Like GET() but the method in the request is "HEAD".
DELETE $url
DELETE $url, Header => Value,...
Like GET() but the method in the request is "DELETE".
PUT $url
PUT $url, Header =
Value,...>
PUT $url, Header =
Value,..., content => $content>
Like GET() but the method in the request is "PUT".
PATCH $url
PATCH $url, Header =
Value,...>
PATCH $url, Header =
Value,..., content => $content>
Like GET() but the method in the request is "PATCH".