Web user agent class for Raku.
use HTTP::UserAgent;
my $ua = HTTP::UserAgent.new;
$ua.timeout = 10;
my $response = $ua.get("URL");
if $response.is-success {
say $response.content;
} else {
die $response.status-line;
}
To install it using Zef (a module management tool bundled with Rakudo Star):
$ zef install HTTP::UserAgent
To run tests:
$ prove -e "perl6 -Ilib"
Please see the documentation links listed below:
strikethrough text means done.
- clean up
- speed up
HTTP Auth- let user set his own cookie jar
make getprint() return the code responsesecurity fix - use File::Temp to create temporary cookie jar- use Promises
make SSL dependency as optional
- path restriction
fix NativeCall's int bug- make it work on more platforms
- make it work on more platforms
- make SSL support more reliable
- add throwing exception on failing SSL
- more tests