mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-12-04 00:01:13 -05:00
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).
19 lines
334 B
Plaintext
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
|