Method: HTTP::Message::Headers#create_query_uri
- Defined in:
- lib/httpclient/http.rb
#create_query_uri ⇒ Object
316 317 318 319 320 321 322 323 324 325 326 |
# File 'lib/httpclient/http.rb', line 316 def create_query_uri() if @request_method == 'CONNECT' return "#{@request_uri.host}:#{@request_uri.port}" end path = @request_uri.path path = '/' if path.nil? or path.empty? if query_str = create_query_part() path += "?#{query_str}" end path end |