From: "Lin Jen-Shin (godfat)" Date: 2012-02-18T07:00:01+09:00 Subject: [ANN] cool.io-http 0.3.1 released ## [cool.io-http](https://github.com/godfat/cool.io-http) by Lin Jen-Shin ([godfat](http://godfat.org)) ### DESCRIPTION: Simpler HTTP(S) for [cool.io](https://github.com/tarcieri/cool.io) ### CHANGES: #### cool.io-http 0.3.1 -- 2012-02-18 * Make sure Response#status is an integer * Fixed a few bugs * Return the response object in HttpFiber ### INSTALLATION: gem install cool.io-http ### SYNOPSIS: Asynchrony client: require 'cool.io/http' Coolio::Http.request(:url => 'https://google.com'){ |response| puts "Response: #{response.body}" puts puts " Headers: #{response.headers}" puts " Status: #{response.status}" } Coolio::Loop.default.run Fiber-aware synchrony client: require 'cool.io/http' Fiber.new{ Coolio::HttpFiber.request(:url => 'https://google.com'){ | response| puts "Response: #{response.body}" puts puts " Headers: #{response.headers}" puts " Status: #{response.status}" } puts "DONE" }.resume puts "GO" Coolio::Loop.default.run