Skip to content
This repository

Basic Auth

To perform a Basic-Auth handshake, specify the authorization key inside of your headers. First field is the username, second is the password:

EventMachine.run do
  http = EventMachine::HttpRequest.new('http://www.website.com/').get :head => {'authorization' => ['user', 'pass']}
  http.callback { }
end

OAuth

For an example of performing an OAuth signed request, check the examples directory in the repo.

Something went wrong with that request. Please try again.