Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (25 sloc) 0.561 kb
module Typhoeus
module Requests
module Operations
def self.included(base)
base.extend ClassMethods
end
module ClassMethods
def run(url, params = {})
r = new(url, params)
r.run
end
end
def run
easy = Typhoeus.get_easy
easy.http_request(url, options[:method] || :get, options)
easy.prepare
easy.perform
@response = Response.new(easy.to_hash)
Typhoeus.release_easy(easy)
complete
@response
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.