HTTP::Easy(3)
πΈ HTTP::Easy π
okay bestie, so this is HTTP::Easy, a Perl module from the User Contributed Perl Documentation section of the manual. It's literally a "Useful set for work with HTTP" β that's the whole NAME line, no cap. Think of it as a little toolkit for juggling HTTP headers and cookies without wanting to scream. π«Ά
β¨ SYNOPSIS β¨
here's the vibe in code form, copy it exactly bestie:
use HTTP::Easy::Headers;
my $h = "Connection: close\015\012".
"Expect: continue-100\015\012".
"Content-Type: text/html";
my $hash = HTTP::Easy::Headers->decode($h);
$hash->{connection}; # 'close'
$hash->{expect}; # 'continue-100'
$hash->{'content-type'}; # 'text/html'
my $hdr = HTTP::Easy::Headers->encode($hash);
use HTTP::Easy::Cookie;
my $cookie_jar = HTTP::Easy::Cookie->decode($hdr->{cookie});
$hdr->{cookie} = HTTP::Easy::Cookie->encode($cookie_jar, host => 'example.net', path => '/path' );
so you decode a raw header string into a hash, encode it back out, and the cookie submodule does the same glow-up for cookies β decode gives you a cookie jar, encode turns it back into a header string. slay β¨
π AUTHOR π
Mons Anderson, "<mons at cpan.org>" β the icon who made this. bow down. π
π LICENSE AND COPYRIGHT π
Copyright 2010-2013 Mons Anderson.
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.
so it's dual-licensed, pick whichever one speaks to you, both are valid, periodt. π
and that's the whole page, bestie β short and sweet, it's giving minimalism. this was HTTP::Easy(3) from perl v5.42.0, dated 2025-07-25. ily, go write some HTTP code π
β¨π¦
π¦ where this page comes from
- fedora 43: perl-HTTP-Easy 0.04-7.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms