NAME
Twilio::Http::TinyClient - Default HTTP transport, based on HTTP::Tiny
SYNOPSIS
my $http = Twilio::Http::TinyClient->new({ timeout => 30 });
my $client = Twilio::Rest::Client->new($sid, $token, { http_client => $http });
DESCRIPTION
Sends requests with HTTP::Tiny. TLS certificates are always verified, and redirects are not followed. Proxy settings come from the https_proxy and all_proxy environment variables.
A failure before Twilio answers, such as a connection or TLS error, throws Twilio::Exceptions::EnvironmentException.
METHODS
new
my $http = Twilio::Http::TinyClient->new(\%options);
Accepts the options of "new" in Twilio::Http::Client, plus http_tiny to supply your own configured HTTP::Tiny object. In that case, TLS verification and redirects are your responsibility.
send_request
See "send_request" in Twilio::Http::Client.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.