Module: ExvoAuth::Autonomous::Http
Instance Method Summary collapse
- #delete(*args) ⇒ Object
- #get(*args) ⇒ Object
- #head(*args) ⇒ Object
- #options(*args) ⇒ Object
- #post(*args) ⇒ Object
- #put(path, options = {}) ⇒ Object
Instance Method Details
#delete(*args) ⇒ Object
17 18 19 |
# File 'lib/exvo_auth/autonomous/http.rb', line 17 def delete(*args) http.delete(*args) end |
#get(*args) ⇒ Object
2 3 4 |
# File 'lib/exvo_auth/autonomous/http.rb', line 2 def get(*args) http.get(*args) end |
#head(*args) ⇒ Object
21 22 23 |
# File 'lib/exvo_auth/autonomous/http.rb', line 21 def head(*args) http.head(*args) end |
#options(*args) ⇒ Object
25 26 27 |
# File 'lib/exvo_auth/autonomous/http.rb', line 25 def (*args) http.(*args) end |
#post(*args) ⇒ Object
6 7 8 |
# File 'lib/exvo_auth/autonomous/http.rb', line 6 def post(*args) http.post(*args) end |
#put(path, options = {}) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/exvo_auth/autonomous/http.rb', line 10 def put(path, = {}) # This fixes 411 responses from nginx (on heroku) # when Content-Length is missing on put requests. [:body] ||= "" http.put(path, ) end |