HTTP::Thin(3pm)
π HTTP::Thin π
okay so bestie, welcome to HTTP::Thin β the manual page for it, anyway (it's the HTTP::Thin(3pm) page, if you're keeping track of paperwork). The vibe? It's a thin little wrapper. Tiny. Petite. Lowkey doing the most with the least. Let's get into it π«Ά
β¨ VERSION β¨
version 0.006 β yeah she's on 0.006, don't @ me
β¨ SYNOPSIS β¨
here's the whole entire flex, look at how short it is:
use 5.12.1;
use HTTP::Request::Common;
use HTTP::Thin;
say HTTP::Thin->new()->request(GET 'http://example.com')->as_string;
like. that's IT. that's the whole thing. iconic behavior π
β¨ DESCRIPTION β¨
WARNING: This module is untested beyond the very basics. The implementation is simple enough that it shouldn't do evil things but, yeah it's still not approved for use by small children.
not me starting with the warning but FR FR, read it. It's untested past the very basics. The implementation is simple enough that it shouldn't do anything evil, but like... it's still not approved for use by small children. So. Take that as you will π
okay so the actual tea: HTTP::Thin is a thin wrapper around HTTP::Tiny, and what it adds is the ability to hand it HTTP::Request objects and get HTTP::Response objects back. That's it. That's the whole personality.
the drama is that the maintainers of HTTP::Tiny β justifiably!! β don't wanna be on the hook for maintaining compatibility, but a whole bunch of other projects out there already consume HTTP::Message objects. So this module is just glue code, doing what glue code does best π
β¨ METHODS β¨
πΈ request
besides all the parameters that are already documented over in HTTP::Tiny, HTTP::Thin ALSO takes HTTP::Request objects. bestie said "why not both" π
and the return value? an HTTP::Response object. slay.
β¨ WHY? β¨
okay this is my favorite part. A conversation on IRC happened, and mst, ether, and the author all agreed this would be a useful module... but probably not worth the effort. So obviously they wrote it anyway, purely to get it out of their head. main character energy honestly π
β¨ AUTHOR β¨
Chris Prather <chris@prather.org> π
β¨ COPYRIGHT AND LICENSE β¨
This software is copyright (c) 2013 by Chris Prather.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. π
β¨ CONTRIBUTORS β¨
- Aran Deltac
<aran@ziprecruiter.com> - Tatsuhiko Miyagawa
<miyagawa@bulknews.net>
and that's the whole page, bestie!! this little beauty shipped as part of perl v5.34.0, dated 2022-06-14, under the name HTTP::Thin(3pm). go forth and wrap things thinly π¦πβ¨
π¦ where this page comes from
- debian bookworm: libhttp-thin-perl 0.006-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libhttp-thin-perl 0.006-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhttp-thin-perl 0.006-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhttp-thin-perl 0.006-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libhttp-thin-perl 0.006-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms