The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

PerlIO::http - HTTP filehandles

VERSION

version 0.004

SYNOPSIS

 open my $fh, '<:http', 'https://metacpan.org/recent';

DESCRIPTION

This layer enables one to read a file from the internet.

SYNTAX

This module does not have to be loaded explicitly, it will be loaded automatically by using it in an open mode. The layer does not take any argument.

PHILOSPHY

This modules tried to Do The Right Thing™. HTTP errors are translated as faithfully as possible to an $! value (Error 404 becomes ENOENT, 403 becomes EACCESS, et cetera…).

RATIONALE

This module is mostly meant as a proof of concept. It currently does not support writing in an way, and may never support it.

SEE ALSO

  • HTTP::Tiny

    This module is just a thin but pretty wrapper around HTTP::Tiny.

  • IO::Callback::HTTP

    A pure-perl module that supports read-write handles using ties and a non-open() interface.

AUTHOR

Leon Timmermans <leont@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Leon Timmermans.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.