Class Typhoeus::Request
In: lib/typhoeus/request.rb
Parent: Object

Methods

Constants

ACCESSOR_OPTIONS = [ :method, :params, :body, :headers, :connect_timeout, :timeout, :user_agent, :response, :cache_timeout, :follow_location, :max_redirects, :proxy, :proxy_username, :proxy_password, :disable_ssl_peer_verification, :disable_ssl_host_verification, :interface, :ssl_cert, :ssl_cert_type, :ssl_key, :ssl_key_type, :ssl_key_password, :ssl_cacert, :ssl_capath, :ssl_version, :verbose, :username, :password, :auth_method, :user_agent, :proxy_auth_method, :proxy_type
LOCALHOST_ALIASES = %w[ localhost 127.0.0.1 0.0.0.0 ]

Attributes

url  [R] 

Public Class methods

Initialize a new Request

Options:

  • url : Endpoint (URL) of the request
  • options : A hash containing options among :

** +:method+ : :get (default) / :post / :put ** +:params+ : params as a Hash ** +:body+ ** +:timeout+ : timeout (ms) ** +:interface+ : interface or ip address (string) ** +:connect_timeout+ : connect timeout (ms) ** +:headers+ : headers as Hash ** +:cache_timeout+ : cache timeout (ms) ** +:follow_location ** +:max_redirects ** +:proxy ** +:disable_ssl_peer_verification ** +:disable_ssl_host_verification ** +:ssl_cert ** +:ssl_cert_type ** +:ssl_key ** +:ssl_key_type ** +:ssl_key_password ** +:ssl_cacert ** +:ssl_capath ** +:verbose ** +:username ** +:password ** +:auth_method ** +:user_agent+ : user agent (string) - DEPRECATED

Protected Class methods

Public Instance methods

Protected Instance methods

Return the important data needed to serialize this Request, except the `on_complete` and `after_complete` handlers, since they cannot be marshalled.

[Validate]