lib/reel/request.rb in reel-0.0.1 vs lib/reel/request.rb in reel-0.0.2
- old
+ new
@@ -1,7 +1,7 @@
module Reel
class Request
- attr_accessor :method, :version, :url
+ attr_accessor :method, :version, :url, :headers
METHODS = [:get, :head, :post, :put, :delete, :trace, :options, :connect, :patch]
def initialize(method, url, version = "1.1", headers = {}, connection = nil)
@method = method.to_s.downcase.to_sym
raise UnsupportedArgumentError, "unknown method: #{method}" unless METHODS.include? @method
\ No newline at end of file