Module: HTTPX::Plugins::Proxy::HTTP::InstanceMethods
- Defined in:
- lib/httpx/plugins/proxy/http.rb,
sig/plugins/proxy/http.rbs
Instance Method Summary collapse
-
#with_proxy_basic_auth(opts) ⇒ instance
returns a new session with the proxy authentication scheme set to "basic", for HTTP Basic Auth.
-
#with_proxy_digest_auth(opts) ⇒ instance
returns a new session with the proxy authentication scheme set to "digest", for HTTP Digest Auth.
-
#with_proxy_ntlm_auth(opts) ⇒ instance
returns a new session with the proxy authentication scheme set to "ntlm", for NTLM Auth.
Instance Method Details
#with_proxy_basic_auth(opts) ⇒ instance
returns a new session with the proxy authentication scheme set to "basic", for HTTP Basic Auth.
48 49 50 |
# File 'lib/httpx/plugins/proxy/http.rb', line 48 def with_proxy_basic_auth(opts) with(proxy: opts.merge(scheme: "basic")) end |
#with_proxy_digest_auth(opts) ⇒ instance
returns a new session with the proxy authentication scheme set to "digest", for HTTP Digest Auth.
53 54 55 |
# File 'lib/httpx/plugins/proxy/http.rb', line 53 def with_proxy_digest_auth(opts) with(proxy: opts.merge(scheme: "digest")) end |
#with_proxy_ntlm_auth(opts) ⇒ instance
returns a new session with the proxy authentication scheme set to "ntlm", for NTLM Auth.
58 59 60 |
# File 'lib/httpx/plugins/proxy/http.rb', line 58 def with_proxy_ntlm_auth(opts) with(proxy: opts.merge(scheme: "ntlm")) end |