Module: HTTPX::Plugins::Proxy::HTTP::InstanceMethods

Defined in:
lib/httpx/plugins/proxy/http.rb,
sig/plugins/proxy/http.rbs

Instance Method Summary collapse

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.

Parameters:

  • opts (Hash[Symbol, untyped])

Returns:

  • (instance)


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.

Parameters:

  • opts (Hash[Symbol, untyped])

Returns:

  • (instance)


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.

Parameters:

  • opts (Hash[Symbol, untyped])

Returns:

  • (instance)


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