module HTTP::Client
Constants
- DELETE
- GET
- HEAD
- OPTIONS
- POST
- PUT
- SSL_VERIFY_NONE
- SSL_VERIFY_PEER
- TRACE
- VERSION
Attributes
Public Class Methods
Creates a DELETE
request and executes it, returning the response. @see HTTP::Client::Request#initialize
@param [String or URI] uri Remote URI. @param [Hash] args Options, see HTTP::Client::Request#initialize. @return [HTTP::Client::Response]
# File lib/http/client.rb, line 425 def delete uri, args = {}; Request.new(DELETE, uri, args).execute; end
Creates a GET
request and executes it, returning the response. @see HTTP::Client::Request#initialize
@param [String or URI] uri Remote URI. @param [Hash] args Options, see HTTP::Client::Request#initialize. @return [HTTP::Client::Response]
# File lib/http/client.rb, line 398 def get uri, args = {}; Request.new(GET, uri, args).execute; end
Creates a OPTIONS
request and executes it, returning the response. @see HTTP::Client::Request#initialize
@param [String or URI] uri Remote URI. @param [Hash] args Options, see HTTP::Client::Request#initialize. @return [HTTP::Client::Response]
# File lib/http/client.rb, line 434 def options uri, args = {}; Request.new(OPTIONS, uri, args).execute; end
Creates a POST
request and executes it, returning the response. @see HTTP::Client::Request#initialize
@param [String or URI] uri Remote URI. @param [Hash] args Options, see HTTP::Client::Request#initialize. @return [HTTP::Client::Response]
# File lib/http/client.rb, line 416 def post uri, args = {}; Request.new(POST, uri, args).execute; end
Creates a PUT
request and executes it, returning the response. @see HTTP::Client::Request#initialize
@param [String or URI] uri Remote URI. @param [Hash] args Options, see HTTP::Client::Request#initialize. @return [HTTP::Client::Response]
# File lib/http/client.rb, line 407 def put uri, args = {}; Request.new(PUT, uri, args).execute; end
Creates a TRACE
request and executes it, returning the response. @see HTTP::Client::Request#initialize
@param [String or URI] uri Remote URI. @param [Hash] args Options, see HTTP::Client::Request#initialize. @return [HTTP::Client::Response]
# File lib/http/client.rb, line 443 def trace uri, args = {}; Request.new(TRACE, uri, args).execute; end