WWW
The simplest HTTP client for Crystal (only GET with HTTPS)
Installation
- Add the dependency to your
shard.yml
:
dependencies:
www:
github: c910335/www
- Run
shards install
Usage
require "www"
puts www.example.org # => "<!doctype html>\n<html>\n<head>\n <title>Example Domain</title> ..."
# Or if the url does not start with "www"
www example
puts example.com # => "<!doctype html>\n<html>\n<head>\n <title>Example Domain</title> ..."
Contributing
- Fork it (https://github.com/c910335/www/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Tatsujin Chin - creator and maintainer