mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-06 00:02:08 -04:00
removed with_ options, which are unsupported, undocumented and irrelevant (contrary to the similar with session methods)
47 lines
1.2 KiB
Plaintext
47 lines
1.2 KiB
Plaintext
module HTTPX
|
|
HTTPProxyError: singleton(Error)
|
|
|
|
module Plugins
|
|
module Proxy
|
|
Error: singleton(HTTPProxyError)
|
|
PROXY_ERRORS: Array[singleton(StandardError)]
|
|
|
|
class Parameters
|
|
attr_reader uri: URI::Generic
|
|
attr_reader username: string?
|
|
attr_reader password: string?
|
|
|
|
def authenticated?: () -> boolish
|
|
def token_authentication: () -> String?
|
|
|
|
def ==: (untyped) -> bool
|
|
|
|
private
|
|
|
|
def initialize: (uri: generic_uri, ?username: string, ?password: string) -> untyped
|
|
end
|
|
|
|
def self.configure: (singleton(Session)) -> void
|
|
|
|
type proxyParam = Parameters | Hash
|
|
|
|
interface _ProxyOptions
|
|
def proxy: () -> proxyParam?
|
|
def proxy=: (Parameters | _ToHash) -> proxyParam
|
|
end
|
|
|
|
def self.extra_options: (Options) -> (Options & _ProxyOptions)
|
|
|
|
module InstanceMethods
|
|
private
|
|
|
|
def proxy_uris: (uri, Options & _ProxyOptions) -> { uri: (URI | string), username: string, password: string }
|
|
| (uri, Options & _ProxyOptions) -> { uri: (URI | string) }
|
|
| (uri, Options & _ProxyOptions) -> nil
|
|
end
|
|
end
|
|
|
|
type sessionProxy = Session & Plugins::Proxy::InstanceMethods
|
|
end
|
|
end
|