Sha256: a941904db3e6bb5252e9cee0457aa7bcf5ad937a25014a88d067fa5b62dddcef

Contents?: true

Size: 1.21 KB

Versions: 18

Compression:

Stored size: 1.21 KB

Contents

module HTTPX
  class HTTPProxyError < Error
  end

  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[Symbol, untyped]

      interface _ProxyOptions
        def proxy: () -> proxyParam?
      end

      def self.extra_options: (Options) -> (Options & _ProxyOptions)

      module InstanceMethods
        private

        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
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
httpx-0.19.8 sig/plugins/proxy.rbs
httpx-0.19.7 sig/plugins/proxy.rbs
httpx-0.19.6 sig/plugins/proxy.rbs
httpx-0.19.5 sig/plugins/proxy.rbs
httpx-0.19.4 sig/plugins/proxy.rbs
httpx-0.19.3 sig/plugins/proxy.rbs
httpx-0.19.2 sig/plugins/proxy.rbs
httpx-0.19.1 sig/plugins/proxy.rbs
httpx-0.19.0 sig/plugins/proxy.rbs
httpx-0.18.7 sig/plugins/proxy.rbs
httpx-0.18.6 sig/plugins/proxy.rbs
httpx-0.18.5 sig/plugins/proxy.rbs
httpx-0.18.4 sig/plugins/proxy.rbs
httpx-0.18.3 sig/plugins/proxy.rbs
httpx-0.18.2 sig/plugins/proxy.rbs
httpx-0.18.1 sig/plugins/proxy.rbs
httpx-0.18.0 sig/plugins/proxy.rbs
httpx-0.17.0 sig/plugins/proxy.rbs