Module: HTTP::Client
- Defined in:
- lib/http/client.rb
Defined Under Namespace
Classes: ArgumentError, Error, Multipart, Request, Response
Constant Summary collapse
- VERSION =
'0.2.1'- 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.
401 |
# File 'lib/http/client.rb', line 401 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.
374 |
# File 'lib/http/client.rb', line 374 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.
410 |
# File 'lib/http/client.rb', line 410 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.
392 |
# File 'lib/http/client.rb', line 392 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.
383 |
# File 'lib/http/client.rb', line 383 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.
419 |
# File 'lib/http/client.rb', line 419 def trace uri, args = {}; Request.new(TRACE, uri, args).execute; end |