Perl 6 bindings for libcurl (abandoned)
Perl 6 C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
doc
lib/WWW/Curl
src
.gitignore
META.info
README.md
test.p6

README.md

Curl6: libcurl bindings for Perl 6

NOTE

I am discontinuing this library. Instead, I will be writing a new library called Net::Curl::Easy that will be a user-friendly wrapper to the Net::Curl library. Stay tuned.

Introduction

Inspired by WWW::Curl and WWW::Curl::Simple from Perl 5, as well as my own HTTP::Client for Perl 6, this is a binding for the libcurl library for Perl 6, and some nice wrappers to make things easier to work with.

Goal

  my $c = WWW::Curl.new;
  my $response = $c.verbose.get('http://huri.net/test.txt');
  if ($reponse.success) {
    say $response.body;
  }
  else {
   say "Error: {$response.errcode} occurred.";
  }

Requirements

NativeCall

Author

Timothy Totten

License

Artistic License 2.0