Module: ExvoAuth::Autonomous::Http

Included in:
Auth, Consumer
Defined in:
lib/exvo_auth/autonomous/http.rb

Instance Method Summary collapse

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 options(*args)
  http.options(*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, options = {})
  # This fixes 411 responses from nginx (on heroku) 
  # when Content-Length is missing on put requests.
  options[:body] ||= ""
  http.put(path, options)
end