class Bundler::URI::WS
def request_uri
uri.request_uri # => "/foo/bar?test=true"
uri = Bundler::URI::WS.build(path: '/foo/bar', query: 'test=true')
Example:
Otherwise, the path is simply Bundler::URI#path.
If the Bundler::URI contains a query, the full path is Bundler::URI#path + '?' + Bundler::URI#query.
Returns the full path for a WS Bundler::URI, as required by Net::HTTP::Get.
== Description
def request_uri return unless @path url = @query ? "#@path?#@query" : @path.dup url.start_with?(?/.freeze) ? url : ?/ + url end