xtd 0.2.0
Loading...
Searching...
No Matches

◆ path_and_query()

xtd::ustring xtd::uri::path_and_query ( ) const

Gets the absolute_path and query properties separated by a question mark (?).

Returns
string A string that contains the absolute_path and query properties separated by a question mark (?).
Exceptions
xtd::invalid_operation_exceptionThis instance represents a relative URI, and this property is valid only for absolute URIs.
Remarks
The path_and_query property contains the absolute path on the server and the query information sent with the request. It is identical to concatenating the absolute_path and query properties.
The path_and_query property is escaped according to RFC 2396 by default. If International Resource Identifiers (IRIs) or Internationalized Domain Name (IDN) parsing is enabled, the path_and_query property is escaped according to RFC 3986 and RFC 3987.
For more information on URI support, see the Remarks section for the xtd::uri class.