Sha256: 1edb0ca36e4bccb72ca16747e8e2033d81442cf5e1cd9cc56865f0facf08743c

Contents?: true

Size: 502 Bytes

Versions: 1

Compression:

Stored size: 502 Bytes

Contents

# frozen_string_literal: true

module HTTPX
  unless ENV.keys.grep(/\Ahttps?_proxy\z/i).empty?
    proxy_session = plugin(:proxy)
    remove_const(:Session)
    const_set(:Session, proxy_session.class)
    remove_const(:Options)
    const_set(:Options, proxy_session.class.default_options.class)
  end

  # :nocov:
  if Session.default_options.debug_level > 2
    proxy_session = plugin(:internal_telemetry)
    remove_const(:Session)
    const_set(:Session, proxy_session.class)
  end
  # :nocov:
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
httpx-0.18.7 lib/httpx/session_extensions.rb