# \[ANN\] HTTP (The Gem!) 1.0.0: a fast, elegant HTTP client for Ruby

**URL:** <https://rubytalk.org/t/ann-http-the-gem-1-0-0-a-fast-elegant-http-client-for-ruby/73370>\
**Category:** ruby-talk\
**Created:** [25 December 2015 19:10 UTC](https://rubytalk.org/t/ann-http-the-gem-1-0-0-a-fast-elegant-http-client-for-ruby/73370 "2015-12-25T19:10:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony\_Arcieri1](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/tony_arcieri1/32/1864_2.png) [@Tony\_Arcieri1](https://rubytalk.org/u/Tony_Arcieri1)\
**Post date:** [25 December 2015 19:10 UTC](https://rubytalk.org/t/ann-http-the-gem-1-0-0-a-fast-elegant-http-client-for-ruby/73370/1 "2015-12-25T19:10:15Z")

</div>

Merry Christmas! After 4 years, the "http" gem (a.k.a. http.rb) has finally  
hit 1.0:

&nbsp;&nbsp;&nbsp;&nbsp;gem install http

Web site: [https://github.com/httprb/http](https://github.com/httprb/http)

http.rb provides an elegant, chainable interface for building HTTP  
requests, similar to Python's "Requests" library. Think JQuery for building  
HTTP requests. Its API is hopefully intuitive and just does what you expect  
(unlike, say, Net::HTTP).

This gem provides an almost pure Ruby implementation of the HTTP protocol,  
except for its use of http\_parser.rb, which uses the Node.js HTTP parser  
written in C (and a Java port thereof on JRuby). This means http.rb has no  
reliance on Net::HTTP, and thanks to the native HTTP parser is faster than  
pure Ruby implementations of the HTTP protocol such as excon. It's use of a  
native parser is somewhat analogous to a client side Mongrel or Unicorn vs  
a pure Ruby WEBrick.

In the past year it's gained a number of features, most notably: support  
for persistent "keep-alive" connections and fine-grained timeouts  
implemented using asynchronous I/O instead of timeout.rb's thread-based  
approach. This gem is now the main client for service-to-service HTTP  
communication for Ruby apps at Square.

I'd like to thank Zach Anker for his many contributions to this library in  
the past year, as well as Alexey V. Zapparov and Erik Michaels-Ober for  
their ongoing contributions.

> **···**
>
> --  
> Tony Arcieri
