sig/plugins/proxy.rbs in httpx-0.16.1 vs sig/plugins/proxy.rbs in httpx-0.17.0
- old
+ new
@@ -7,21 +7,21 @@
Error: singleton(HTTPProxyError)
PROXY_ERRORS: Array[singleton(StandardError)]
class Parameters
attr_reader uri: URI::Generic
- attr_reader username: string?
- attr_reader password: string?
+ 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
+ def initialize: (uri: generic_uri, ?username: String, ?password: String) -> untyped
end
def self.configure: (singleton(Session)) -> void
type proxyParam = Parameters | Hash[Symbol, untyped]
@@ -33,12 +33,12 @@
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
+ def proxy_uris: (generic_uri, Options & _ProxyOptions) -> { uri: generic_uri, username: String, password: String }
+ | (generic_uri, Options & _ProxyOptions) -> { uri: generic_uri }
+ | (generic_uri, Options & _ProxyOptions) -> nil
end
end
type sessionProxy = Session & Proxy::InstanceMethods
end