Sha256: 2f8caa946c3c4a1342ce2af652d8bc6388af17e7a3676e62dfe63205f59e3bdc

Contents?: true

Size: 1.3 KB

Versions: 4

Compression:

Stored size: 1.3 KB

Contents

module HTTPX
  class HTTPProxyError < ConnectionError
  end

  class ProxySSL < SSL
  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]

        private

        def proxy_error?: (Request request, response) -> bool

        def proxy_options: (http_uri request_uri, Options & _ProxyOptions options) -> (Options & _ProxyOptions)
      end

      module ConnectionMethods
      end
    end

    type sessionProxy = Session & Proxy::InstanceMethods
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
httpx-1.3.4 sig/plugins/proxy.rbs
httpx-1.3.3 sig/plugins/proxy.rbs
httpx-1.3.2 sig/plugins/proxy.rbs
httpx-1.3.1 sig/plugins/proxy.rbs