Public Instance methods
join_headline(request)
[show source]
# File lib/httpx/plugins/proxy/http.rb 151 def join_headline(request) 152 return super if request.verb == "CONNECT" 153 154 "#{request.verb} #{request.uri} HTTP/#{@version.join(".")}" 155 end
set_protocol_headers(request)
[show source]
# File lib/httpx/plugins/proxy/http.rb 157 def set_protocol_headers(request) 158 extra_headers = super 159 160 proxy_params = @options.proxy 161 if proxy_params.scheme == "basic" 162 # opt for basic auth 163 extra_headers["proxy-authorization"] = proxy_params.authenticate(extra_headers) 164 end 165 extra_headers["proxy-connection"] = extra_headers.delete("connection") if extra_headers.key?("connection") 166 extra_headers 167 end