class Typhoeus::Request
def initialize(base_url, options = {})
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: (String base_url, ?Hash options) -> void
This signature was generated using 38 samples from 3 applications.
- See: Typhoeus::Request::Actions -
See: Typhoeus::Response -
See: Typhoeus::Hydra -
Other tags:
- Note: - See {http://rubydoc.info/github/typhoeus/ethon/Ethon/Easy/Options Ethon::Easy::Options} for more options.
Returns:
-
(Typhoeus::Request)
- The request.
Options Hash:
(**options)
-
:body
(Hash
) -- Translated -
:params
(Hash
) -- Translated
Parameters:
-
options
(options
) -- The options. -
base_url
(String
) -- The url to request.
Other tags:
- Example: Create a request and allow follow redirections. -
Example: Request with parameters and body. -
Example: Request with a body. -
Example: Request with url parameters. -
Example: Simplest request. -
def initialize(base_url, options = {}) @base_url = base_url @original_options = options @options = options.dup set_defaults end