to_string


Description:

public string to_string (bool just_path_and_query)

Returns a string representing this.

If just_path_and_query is true, this concatenates the path and query together. That is, it constructs the string that would be needed in the Request-Line of an HTTP request for this.

Note that the output will never contain a password, even if this does.

Parameters:

this

a URI

just_path_and_query

if true, output just the path and query portions

Returns:

a string representing this, which the caller must free.