libcurl for Crystal
Crystal C bindings for libcurl, the multiprotocol file transfer library - see libcurl
Installation
Add this to your application's shard.yml
:
dependencies:
curl-crystal:
github: blocknotes/curl-crystal
Usage
require "curl-crystal"
curl = LibCurl.curl_easy_init
LibCurl.curl_easy_setopt curl, LibCurl::CURLoption::CURLOPT_URL, "https://www.google.com"
puts LibCurl.curl_easy_perform curl
LibCurl.curl_easy_cleanup curl
More examples
See examples folder.
Contributors
- Mattia Roccoberton - creator, maintainer, Crystal fan :)