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::HTTPS object 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::All
  • IO::All::LWP
  • LWP

πŸŽ€ AUTHORS πŸŽ€

Ivan Tubert-Brohman <itub@cpan.org> and Brian Ingerson <ingy@cpan.org> β€” icons, honestly. πŸ‘‘


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