module HTTPX::Plugins::Proxy::HTTP::OptionsMethods

  1. lib/httpx/plugins/proxy/http.rb

adds support for the following options:

:proxy_headers

hash of HTTP headers to send while connecting to the proxy.

:enable_proxy_tunnel

when true, it forces the establishment of the CONNECT proxy tunnel, in cases where it wouldn’t otherwise normally establish it (i.e. if the request is an http:// request).

:connect_request_class

class of the request object used for the CONNECT tunnel request.

Methods

Public Instance

  1. extend_with_plugin_classes

Public Instance methods

extend_with_plugin_classes(pl)
[show source]
   # File lib/httpx/plugins/proxy/http.rb
21 def extend_with_plugin_classes(pl)
22   super
23 
24   @connect_request_class = @request_class.dup
25   Options::SET_TEMPORARY_NAME[@connect_request_class, pl]
26   @connect_request_class.__send__(:include, ConnectRequestMethods)
27 end