lib/em-synchrony/em-http.rb in em-synchrony-0.2.0 vs lib/em-synchrony/em-http.rb in em-synchrony-0.3.0.beta.1
- old
+ new
@@ -3,10 +3,10 @@
rescue LoadError => error
raise "Missing EM-Synchrony dependency: gem install em-http-request"
end
module EventMachine
- class HttpRequest
+ module HTTPMethods
%w[get head post delete put].each do |type|
class_eval %[
alias :a#{type} :#{type}
def #{type}(options = {}, &blk)
f = Fiber.current