typhoeus 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/typhoeus.rb +1 -1
- data/lib/typhoeus/request.rb +4 -4
- metadata +1 -1
data/lib/typhoeus.rb
CHANGED
data/lib/typhoeus/request.rb
CHANGED
@@ -92,19 +92,19 @@ module Typhoeus
|
|
92
92
|
r.response
|
93
93
|
end
|
94
94
|
|
95
|
-
def self.get(url, params)
|
95
|
+
def self.get(url, params = {})
|
96
96
|
run(url, params.merge(:method => :get))
|
97
97
|
end
|
98
98
|
|
99
|
-
def self.post(url, params)
|
99
|
+
def self.post(url, params = {})
|
100
100
|
run(url, params.merge(:method => :post))
|
101
101
|
end
|
102
102
|
|
103
|
-
def self.put(url, params)
|
103
|
+
def self.put(url, params = {})
|
104
104
|
run(url, params.merge(:method => :put))
|
105
105
|
end
|
106
106
|
|
107
|
-
def self.delete(url, params)
|
107
|
+
def self.delete(url, params = {})
|
108
108
|
run(url, params.merge(:method => :delete))
|
109
109
|
end
|
110
110
|
end
|