Module: HTTP::Client
- Defined in:
- lib/http/client.rb
Defined Under Namespace
Classes: Multipart, Request, Response
Constant Summary collapse
- VERSION =
'0.1.2'- GET =
Net::HTTP::Get
- HEAD =
Net::HTTP::Head
- PUT =
Net::HTTP::Put
- POST =
Net::HTTP::Post
- DELETE =
Net::HTTP::Delete
- OPTIONS =
Net::HTTP::Options
- TRACE =
Net::HTTP::Trace
- SSL_VERIFY_NONE =
OpenSSL::SSL::VERIFY_NONE
- SSL_VERIFY_PEER =
OpenSSL::SSL::VERIFY_PEER
Class Method Summary collapse
-
.delete(uri, args = {}) ⇒ HTTP::Client::Response
Creates a DELETE request and executes it, returning the response.
-
.get(uri, args = {}) ⇒ HTTP::Client::Response
Creates a GET request and executes it, returning the response.
-
.options(uri, args = {}) ⇒ HTTP::Client::Response
Creates a OPTIONS request and executes it, returning the response.
-
.post(uri, args = {}) ⇒ HTTP::Client::Response
Creates a POST request and executes it, returning the response.
-
.put(uri, args = {}) ⇒ HTTP::Client::Response
Creates a PUT request and executes it, returning the response.
-
.trace(uri, args = {}) ⇒ HTTP::Client::Response
Creates a TRACE request and executes it, returning the response.
Class Method Details
.delete(uri, args = {}) ⇒ HTTP::Client::Response
Creates a DELETE request and executes it, returning the response.
378 |
# File 'lib/http/client.rb', line 378 def delete uri, args = {}; Request.new(DELETE, uri, args).execute; end |
.get(uri, args = {}) ⇒ HTTP::Client::Response
Creates a GET request and executes it, returning the response.
351 |
# File 'lib/http/client.rb', line 351 def get uri, args = {}; Request.new(GET, uri, args).execute; end |
.options(uri, args = {}) ⇒ HTTP::Client::Response
Creates a OPTIONS request and executes it, returning the response.
387 |
# File 'lib/http/client.rb', line 387 def uri, args = {}; Request.new(OPTIONS, uri, args).execute; end |
.post(uri, args = {}) ⇒ HTTP::Client::Response
Creates a POST request and executes it, returning the response.
369 |
# File 'lib/http/client.rb', line 369 def post uri, args = {}; Request.new(POST, uri, args).execute; end |
.put(uri, args = {}) ⇒ HTTP::Client::Response
Creates a PUT request and executes it, returning the response.
360 |
# File 'lib/http/client.rb', line 360 def put uri, args = {}; Request.new(PUT, uri, args).execute; end |
.trace(uri, args = {}) ⇒ HTTP::Client::Response
Creates a TRACE request and executes it, returning the response.
396 |
# File 'lib/http/client.rb', line 396 def trace uri, args = {}; Request.new(TRACE, uri, args).execute; end |