build_with_user
Description:
[ Version ( since = "2.66" ) ]
public static Uri build_with_user (UriFlags flags, string scheme, string? user, string? password, string? auth_params, string? host, int port, string path, string? query, string? fragment)
public static Uri build_with_user (UriFlags flags, string scheme, string? user, string? password, string? auth_params, string? host, int port, string path, string? query, string? fragment)
Creates a new Uri 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 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:
| flags |
flags describing how to build the Uri |
| scheme |
the URI scheme |
| user |
the user component of the userinfo, or null |
| password |
the password component of the userinfo, or null |
| auth_params |
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 |
Returns:
|
a new Uri |