A client for HTTP goodness. Inspired by python-requests and daily need.
Add this to your application's shard.yml
:
dependencies:
nghttp:
github: bmmcginty/nghttp
require "nghttp"
s=NGHTTP::Session.new
s.headers["User-Agent"]="New User-Agent"
s.config["cache"]=true
s.config["cache_expires"]=1.hours
body=nil
s.get"https://example.org/") do |resp|
body=resp.xml
end
Most work can be found in the handlers directory.
- Fork it ( https://github.com/bmmcginty/nghttp/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
- bmmcginty Brandon McGinty-Carroll - creator, maintainer