Http Client based on platform http api.
Inspire from puppy nim
- Windows
- Linux
- Macos
- No openssl required (aka. you can
crystal build -Dwithout_openssl
) - Http proxy support
- No support response body streaming
- More to be discover
-
Add the dependency to your
shard.yml
:dependencies: puppy: github: lost22git/puppy.cr
-
Run
shards install
require "puppy"
response = Puppy.get "https://httpbin.org/status/444"
puts response.body_io.gets_to_end
crystal spec --progress
- Fork it (https://github.com/lost22git/puppy.cr/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
- lost - creator and maintainer