Class | AWS::Http::HTTPartyHandler |
In: |
lib/aws/http/httparty_handler.rb
|
Parent: | Object |
Makes HTTP requests using HTTParty. This is the default handler, so you don‘t need to do anything special to configure it. However, you can directly instantiate this class in order to send extra options to HTTParty, for example to enable an HTTP proxy:
AWS.config( :http_handler => AWS::Http::HTTPartyHandler.new( :http_proxyaddr => "http://myproxy.com", :http_proxyport => 80 ) )
default_request_options | [R] |
@return [Hash] The default options to send to HTTParty on each
request. |
Constructs a new HTTP handler using HTTParty.
@param [Hash] options Default options to send to HTTParty on
each request. These options will be sent to +get+, +post+, +head+, +put+, or +delete+ when a request is made. Note that +:body+, +:headers+, +:parser+, and +:ssl_ca_file+ are ignored. If you need to set the CA file, you should use the +:ssl_ca_file+ option to {AWS.config} or {AWS::Configuration} instead.