Module: HTTPX::Plugins::Proxy::HTTP::OptionsMethods
- Defined in:
- lib/httpx/plugins/proxy/http.rb,
sig/plugins/proxy/http.rbs
Overview
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.
Instance Method Summary collapse
- #connect_request_class ⇒ singleton(Request)
- #enable_proxy_tunnel ⇒ Boolean?
- #extend_with_plugin_classes(pl) ⇒ Object
- #proxy_headers ⇒ Headers?
Instance Method Details
#connect_request_class ⇒ singleton(Request)
6 |
# File 'sig/plugins/proxy/http.rbs', line 6
def connect_request_class: () -> singleton(Request) # & ConnectRequestMethods)
|
#enable_proxy_tunnel ⇒ Boolean?
10 |
# File 'sig/plugins/proxy/http.rbs', line 10
def enable_proxy_tunnel: () -> bool?
|
#extend_with_plugin_classes(pl) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/httpx/plugins/proxy/http.rb', line 21 def extend_with_plugin_classes(pl) super @connect_request_class = @request_class.dup Options::SET_TEMPORARY_NAME[@connect_request_class, pl] @connect_request_class.__send__(:include, ConnectRequestMethods) end |
#proxy_headers ⇒ Headers?
8 |
# File 'sig/plugins/proxy/http.rbs', line 8
def proxy_headers: () -> Headers?
|