Skip to content
Web user agent class for Perl 6.
Other
  1. Other 100.0%
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
lib/HTTP Adds test and fixes #222 Apr 29, 2019
t
.gitattributes
.gitignore
.travis.yml Adds for testing and fixing downstream problems Apr 11, 2018
LICENSE
META6.json Fix #229: ./t/150-issue-64.t fails with Jan 20, 2020
README.md

README.md

HTTP::UserAgent Build Status

Web user agent class for Perl 6.

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.

  • clean up
  • speed up

HTTP::UserAgent

  • HTTP Auth
  • let user set his own cookie jar
  • make getprint() return the code response
  • security fix - use File::Temp to create temporary cookie jar
  • use Promises
  • make SSL dependency as optional

HTTP::Cookies

  • path restriction

OpenSSL

  • fix NativeCall's int bug
  • make it work on more platforms

IO::Socket::SSL

  • make it work on more platforms
  • make SSL support more reliable
  • add throwing exception on failing SSL
  • more tests
You can’t perform that action at this time.