Module: RestClientAdapter::API
- Included in:
- HttpAbstraction
- Defined in:
- lib/couchrest/core/adapters/restclient.rb
Instance Method Summary collapse
- #copy(uri, headers) ⇒ Object
- #delete(uri, headers = {}) ⇒ Object
- #get(uri, headers = {}) ⇒ Object
- #post(uri, payload, headers = {}) ⇒ Object
- #proxy ⇒ Object
- #proxy=(url) ⇒ Object
- #put(uri, payload, headers = {}) ⇒ Object
Instance Method Details
#copy(uri, headers) ⇒ Object
28 29 30 31 32 |
# File 'lib/couchrest/core/adapters/restclient.rb', line 28 def copy(uri, headers) RestClient::Request.execute( :method => :copy, :url => uri, :headers => headers) end |
#delete(uri, headers = {}) ⇒ Object
24 25 26 |
# File 'lib/couchrest/core/adapters/restclient.rb', line 24 def delete(uri, headers={}) RestClient.delete(uri, headers) end |
#get(uri, headers = {}) ⇒ Object
12 13 14 |
# File 'lib/couchrest/core/adapters/restclient.rb', line 12 def get(uri, headers={}) RestClient.get(uri, headers) end |
#post(uri, payload, headers = {}) ⇒ Object
16 17 18 |
# File 'lib/couchrest/core/adapters/restclient.rb', line 16 def post(uri, payload, headers={}) RestClient.post(uri, payload, headers) end |
#proxy ⇒ Object
8 9 10 |
# File 'lib/couchrest/core/adapters/restclient.rb', line 8 def proxy RestClient.proxy end |
#proxy=(url) ⇒ Object
4 5 6 |
# File 'lib/couchrest/core/adapters/restclient.rb', line 4 def proxy=(url) RestClient.proxy = url end |
#put(uri, payload, headers = {}) ⇒ Object
20 21 22 |
# File 'lib/couchrest/core/adapters/restclient.rb', line 20 def put(uri, payload, headers={}) RestClient.put(uri, payload, headers) end |