NAME
Net::ACME2::HTTP_Tiny - Synchronous HTTP client for Net::ACME
SYNOPSIS
use Net::ACME2::HTTP_Tiny;
my $http = Net::ACME2::HTTP_Tiny->new();
#NOTE: Unlike HTTP::Tiny’s method, this will die() if the HTTP
#session itself fails--for example, if the network connection was
#interrupted. These will be Net::ACME2::X::HTTP::Network instances.
#
#This also fails on HTTP errors (4xx and 5xx). The errors are
#instances of Net::ACME2::X::HTTP::Protocol.
#
my $resp_obj = $http->post_form( $the_url, \%the_form_post );
DESCRIPTION
This module wraps HTTP::Tiny, thus:
Duplicate the work of
HTTP::Tiny::UA
without the dependency on superclass (which brings in a mess of other undesirables). Thus, the returns fromrequest()
and related methods are instances ofHTTP::Tiny::UA::Response
rather than simple hashes.Verify remote SSL connections, and always
die()
if either the network connection fails or the protocol indicates an error (4xx or 5xx).