Rand Stats

HTTP::UserAgent

github:sergot

HTTP::UserAgent Build Status

Web user agent class for Raku.

Usage

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;
}

Installation

To install it using Zef (a module management tool bundled with Rakudo Star):

$ zef install HTTP::UserAgent

Testing

To run tests:

$ prove -e "perl6 -Ilib"

Documentation

Please see the documentation links listed below:

To-do List and Future Ideas

strikethrough text means done.

HTTP::UserAgent

HTTP::Cookies

OpenSSL

IO::Socket::SSL