### ----------------------------------------------------
### -- HTTP::UserAgent
### -- Licenses: MIT
### -- Authors: Filip Sergot
### -- File: examples/ex_readme.raku
### ----------------------------------------------------
#!/usr/bin/env raku
use HTTP::UserAgent;

my $ua = HTTP::UserAgent.new;
$ua.timeout = 1;

my $response = $ua.get('https://github.com');

if $response.is-success {
    say $response.content;
}
else {
    die $response.status-line;
}

$response = $ua.get('https://github.com/404here');

# vim: expandtab shiftwidth=4


