Sha256: f69b155a0363b9c306532c57ada783e46020267d7bd3e1a4cb19b54ec4700ad6
Contents?: true
Size: 1016 Bytes
Versions: 1
Compression:
Stored size: 1016 Bytes
Contents
# Hugs Hugs net-http-persistent with convenient get, delete, post, and put methods. Opted to write this gem for four reasons: * [Ganeti's API](http://docs.ganeti.org/ganeti/2.2/html/rapi.html), required the sending of a message body with the HTTP Get request, which [rest-client](https://github.com/archiloque/rest-client) does not do. * Wanted a [fast](http://blog.segment7.net/articles/2010/05/07/net-http-is-not-slow), thread-safe, and persistent client. * [Excon](https://github.com/geemus/excon) does most everything right, but is not compatible with [VCR](https://github.com/myronmarston/vcr). * Wanted to learn how to handle this pattern. The XML usage of this gem will probably change. In the next couple of weeks Hugs will be implemented against an XML OCCI API. ## Assumptions * The webservice returns JSON or XML. * You want to objectify the returned JSON. ## Usage ### Bundler gem "hugs" ### Examples See the 'Examples' section in the [wiki](http://github.com/retr0h/hugs/wiki/).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hugs-2.0.0 | README.md |