Uri.build

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

Creates a new #GUri from the given components according to flags.

See also [glib.uri.Uri.buildWithUser], which allows specifying the components of the "userinfo" separately.

Parameters

flagsflags describing how to build the #GUri
schemethe URI scheme
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

a new #GUri