Uri.buildWithUser

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.

class Uri
static
buildWithUser
(,
string scheme
,
string user
,
string password
,
string authParams
,
string host
,
int port
,
string path
,
string query = null
,
string fragment = null
)

Parameters

flags glib.types.UriFlags

flags describing how to build the #GUri

scheme string

the URI scheme

user string

the user component of the userinfo, or null

password string

the password component of the userinfo, or null

authParams string

the auth params of the userinfo, or null

host string

the host component, or null

port int

the port, or -1

path string

the path component

query string

the query component, or null

fragment string

the fragment, or null

Return Value

Type: glib.uri.Uri

a new #GUri