build

fun build(    flags: UriFlags,     scheme: String,     userinfo: String? = null,     host: String? = null,     port: <Error class: unknown class>,     path: String,     query: String? = null,     fragment: String? = null): Uri(source)

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

See also g_uri_build_with_user(), which allows specifying the components of the "userinfo" separately.

Return

a new #GUri

Since

2.66

Parameters

flags

flags describing how to build the #GUri

scheme

the URI scheme

userinfo

the userinfo component, 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