Skip to content
instance method

URI::WS#request_uri

request_uri

Description

Returns the full path for a WS URI, as required by Net::HTTP::Get.

If the URI contains a query, the full path is URI#path + ‘?’ + URI#query. Otherwise, the path is simply URI#path.

Example:

Example
uri = URI::WS.build(path: '/foo/bar', query: 'test=true')
uri.request_uri #  => "/foo/bar?test=true"
See also .build also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0