class HTTPX::Plugins::Proxy::HTTP::ConnectRequest

  1. lib/httpx/plugins/proxy/http.rb
Superclass: Request

Methods

Public Class

  1. new

Public Instance

  1. path

Public Class methods

new (uri, options)
[show source]
    # File lib/httpx/plugins/proxy/http.rb
105 def initialize(uri, options)
106   super(:connect, uri, {})
107   proxy_params = options.proxy
108   @headers["proxy-authentication"] = "Basic #{proxy_params.token_authentication}" if proxy_params.authenticated?
109   @headers.delete("accept")
110 end

Public Instance methods

path ()
[show source]
    # File lib/httpx/plugins/proxy/http.rb
112 def path
113   "#{@uri.hostname}:#{@uri.port}"
114 end