Uri.buildWithUser

glib.uri.Uri buildWithUser(glib.types.UriFlags flags, string scheme, string user, string password, string authParams, string host, int port, string path, string query = null, string fragment = null)

Creates a new #GUri from the given components according to flags (G_URI_FLAGS_HAS_PASSWORD is added unconditionally). The flags must be coherent with the passed values, in particular use `%`-encoded values with G_URI_FLAGS_ENCODED.

In contrast to [glib.uri.Uri.build], this allows specifying the components of the ‘userinfo’ field separately. Note that user must be non-null if either password or auth_params is non-null.

Parameters

flagsflags describing how to build the #GUri
schemethe URI scheme
userthe user component of the userinfo, or null
passwordthe password component of the userinfo, or null
authParamsthe auth params of the userinfo, 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