uriBuildWithUser

fun uriBuildWithUser(flags: UriFlags, scheme: String, user: String? = null, password: String? = null, authParams: String? = null, host: String? = null, port: Int, path: String, query: String? = null, fragment: String? = null): Uri

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 g_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.

Return

a new #GUri

Since

2.66

Parameters

flags

flags describing how to build the #GUri

scheme

the URI scheme

user

the user component of the userinfo, or null

password

the password component of the userinfo, or null

authParams

the auth params of the userinfo, or null

host

the host component, or null

port

the port, or -1

path

the path component

query

the query component, or null

fragment

the fragment, or null