Project

hyperquest

0.0
No commit activity in last 3 years
No release in over 3 years
Hyperquest allows you to do an unlimited amount of HEAD or GET requests via a native extension.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.9
~> 10.0
~> 0.8

Runtime

~> 1.9
 Project Readme

Hyperquest

Installation

Add this line to your application's Gemfile:

gem 'hyperquest'

And then execute:

$ bundle

Or install it yourself as:

$ gem install hyperquest

Usage

require "hyperquest"

h = Hyperquest.get([url1, url2, url3])
# => Hash<url1 => Response, url2 => Response, url3 => Response>

h = Hyperquest.head([url1, url2, url3])
# => Hash<url1 => Response, url2 => Response, url3 => Response>

h[url1].uri
# => "http://example.com"
h[url1].content_length
# => 2435
h[url1].content_type
# => "text/html; charset UTF-8"
h[url1].body
# => "<HTML..."
h[url1].status
# => 200
h[url1].error
# => ""
h[url1].success?
# => true
h[url1].failed?
# => false

Development

This gem is powered by Go 1.5's functionality of creating shared C libraries.

If you're on a mac, you can also install Go with homebrew: brew install go. Please remember to bundle first!

Contributing

  1. Fork it ( https://github.com/berfarah/hyperquest/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request