Uri.join

string join(glib.types.UriFlags flags, string scheme, string userinfo, string host, int port, string path, string query = null, string fragment = null)

Joins the given components together according to flags to create an absolute URI string. path may not be null (though it may be the empty string).

When host is present, path must either be empty or begin with a slash (`/`) character. When host is not present, path cannot begin with two slash characters (`//`). See

RFC 3986, section 3.

See also [glib.uri.Uri.joinWithUser], which allows specifying the components of the ‘userinfo’ separately.

G_URI_FLAGS_HAS_PASSWORD and G_URI_FLAGS_HAS_AUTH_PARAMS are ignored if set in flags.

Parameters

flagsflags describing how to build the URI string
schemethe URI scheme, or null
userinfothe userinfo component, or null
hostthe host component, or null
portthe port, or -1
paththe path component
querythe query component, or null
fragmentthe fragment, or null

Returns

an absolute URI string