Sha256: 10272639312d9df89834ba12e1c7a11aed0ecd98a019bbff18a7f4cfda34a9dd

Contents?: true

Size: 1.03 KB

Versions: 22

Compression:

Stored size: 1.03 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?
        attr_reader scheme: String?

        def can_authenticate?: (*untyped) -> boolish

        def authenticate: (*untyped) -> String?

        def ==: (untyped) -> bool

        private

        def initialize: (uri: generic_uri, ?scheme: String, ?username: String, ?password: String, **untyped) -> 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
        @__proxy_uris: Array[generic_uri]
      end
    end

    type sessionProxy = Session & Proxy::InstanceMethods
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
httpx-1.1.5 sig/plugins/proxy.rbs
httpx-1.1.4 sig/plugins/proxy.rbs
httpx-1.1.3 sig/plugins/proxy.rbs
httpx-1.1.2 sig/plugins/proxy.rbs
httpx-1.1.1 sig/plugins/proxy.rbs
httpx-1.1.0 sig/plugins/proxy.rbs
httpx-1.0.2 sig/plugins/proxy.rbs
httpx-0.24.7 sig/plugins/proxy.rbs
httpx-1.0.1 sig/plugins/proxy.rbs
httpx-1.0.0 sig/plugins/proxy.rbs
httpx-0.24.6 sig/plugins/proxy.rbs
httpx-0.24.5 sig/plugins/proxy.rbs
httpx-0.24.4 sig/plugins/proxy.rbs
httpx-0.24.3 sig/plugins/proxy.rbs
httpx-0.24.2 sig/plugins/proxy.rbs
httpx-0.24.1 sig/plugins/proxy.rbs
httpx-0.24.0 sig/plugins/proxy.rbs
httpx-0.23.4 sig/plugins/proxy.rbs
httpx-0.23.3 sig/plugins/proxy.rbs
httpx-0.23.2 sig/plugins/proxy.rbs