HoneyryderChuck 817a10a537 scoping http auth schemes out of its plugins, made them usable in proxy
In order to expose other auth schemes in proxy, the basic, digest and
ntlm modules were extracted from the plugins, these being left with the
request management. So now, an extra parameter, `:scheme`, can be
passed (it'll be "basic" for http and "socks5" for socks5 by default,
can also be "digest" or "ntlm", haven't tested those yet).
2022-05-07 13:57:10 +01:00

19 lines
334 B
Plaintext

module HTTPX
module Plugins
module Authentication
class Socks5
@user: String
@password: String
def can_authenticate?: (*untyped) -> boolish
def authenticate: (*untyped) -> String
private
def initialize: (string user, string password) -> void
end
end
end
end