module ExvoAuth::Autonomous::Http
Public Instance Methods
delete(*args)
click to toggle source
# File lib/exvo_auth/autonomous/http.rb, line 17 def delete(*args) http.delete(*args) end
get(*args)
click to toggle source
# File lib/exvo_auth/autonomous/http.rb, line 2 def get(*args) http.get(*args) end
head(*args)
click to toggle source
# File lib/exvo_auth/autonomous/http.rb, line 21 def head(*args) http.head(*args) end
options(*args)
click to toggle source
# File lib/exvo_auth/autonomous/http.rb, line 25 def options(*args) http.options(*args) end
post(*args)
click to toggle source
# File lib/exvo_auth/autonomous/http.rb, line 6 def post(*args) http.post(*args) end
put(path, options = {})
click to toggle source
# File lib/exvo_auth/autonomous/http.rb, line 10 def put(path, options = {}) # This fixes 411 responses from nginx (on heroku) # when Content-Length is missing on put requests. options[:body] ||= "" http.put(path, options) end
Protected Instance Methods
basement()
click to toggle source
# File lib/exvo_auth/autonomous/http.rb, line 37 def basement @basement ||= Class.new do include HTTParty debug_output if Exvo::Helpers.auth_debug end end
http()
click to toggle source
# File lib/exvo_auth/autonomous/http.rb, line 31 def http basement.base_uri(base_uri) basement.basic_auth(username, password) basement end