IO::All::HTTPS(3pm)
π IO::All::HTTPS π
okay bestie so this is IO::All::HTTPS, a lil extension of IO::All that makes HTTPS URLs behave like, actual files you can just open and read from. it's giving glow-up for the web. β¨
πΈ SYNOPSIS πΈ
use IO::All;
$content < io('https://example.org'); # GET webpage
# two ways of getting a page with a password:
$content < io('https://me:secret@example.org');
$content < io('https://example.org')->user('me')->password('secret');
like. that's it. that's the whole vibe. π«Ά
π¦ DESCRIPTION π¦
so this module extends IO::All so it can handle HTTPS URLs, no cap. and here's the slay part: you don't even have to use it yourself. IO::All autoloads it the second it spots something that looks like an HTTPS URL. it just knows. iykyk. π
the SYNOPSIS up there shows some cute simple examples, but honestly there are SO many other fun combos with other IO::All features. like, you can grab an HTTPS URL and write the content to a socket?? or to an FTP URL?? or to a DBM file?? the crossover episodes are real. π₯
π METHODS π
this is a subclass of IO::All::LWP, periodt. the only new method is https, and it does two things:
- it can create a blank
IO::All::HTTPSobject for you - or it can take an HTTPS URL as a parameter
but ngl, most of the time it's just simpler to call io('https://example.com') β that calls the https method automatically for you. main character convenience energy. β¨
π OPERATOR OVERLOADING π
same operators as IO::All, no new ones to learn:
<GETs an HTTPS URL>PUTs to an HTTPS URL
π SEE ALSO π
IO::AllIO::All::LWPLWP
π AUTHORS π
Ivan Tubert-Brohman <itub@cpan.org> and Brian Ingerson <ingy@cpan.org> β icons, honestly. π
β COPYRIGHT β
Copyright (c) 2007. Ivan Tubert-Brohman and Brian Ingerson. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://www.perl.com/perl/misc/Artistic.html>
and that's the whole page bestie!! π this one came from the User Contributed Perl Documentation, version perl v5.32.0, dated 2021-01-04. go get those webpages. mwah. ππ§
π¦ where this page comes from
- debian bookworm: libio-all-lwp-perl 0.14-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libio-all-lwp-perl 0.14-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libio-all-lwp-perl 0.14-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libio-all-lwp-perl 0.14-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libio-all-lwp-perl 0.14-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libio-all-lwp-perl 0.14-2.1 Β· 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