Module: CloudFoundry::Client::Request
- Included in:
- CloudFoundry::Client
- Defined in:
- lib/cloudfoundry/client/request.rb
Overview
CloudFoundry API Request Methods.
Instance Method Summary collapse
-
#delete(path, options = {}) ⇒ Object
Performs an HTTP DELETE request to the target cloud.
-
#get(path, options = {}) ⇒ Object
Performs an HTTP GET request to the target cloud.
-
#post(path, body = {}, options = {}) ⇒ Object
Performs an HTTP POST request to the target cloud.
-
#put(path, body = {}, options = {}) ⇒ Object
Performs an HTTP PUT request to the target cloud.
Instance Method Details
#delete(path, options = {}) ⇒ Object
Performs an HTTP DELETE request to the target cloud.
40 41 42 |
# File 'lib/cloudfoundry/client/request.rb', line 40 def delete(path, = {}) request(:delete, path, ) end |
#get(path, options = {}) ⇒ Object
Performs an HTTP GET request to the target cloud.
11 12 13 |
# File 'lib/cloudfoundry/client/request.rb', line 11 def get(path, = {}) request(:get, path, ) end |
#post(path, body = {}, options = {}) ⇒ Object
Performs an HTTP POST request to the target cloud.
21 22 23 |
# File 'lib/cloudfoundry/client/request.rb', line 21 def post(path, body = {}, = {}) request(:post, path, , body) end |
#put(path, body = {}, options = {}) ⇒ Object
Performs an HTTP PUT request to the target cloud.
31 32 33 |
# File 'lib/cloudfoundry/client/request.rb', line 31 def put(path, body = {}, = {}) request(:put, path, , body) end |