Uri


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "1.6" ) ]
public Uri (string? scheme, string? userinfo, string? host, uint port, string? path, string? query, string? fragment)

Creates a new Uri object with the given URI parts.

The path and query strings will be broken down into their elements. All strings should not be escaped except where indicated.

Parameters:

scheme

The scheme for the new URI.

userinfo

The user-info for the new URI.

host

The host name for the new URI.

port

The port number for the new URI or URI_NO_PORT.

path

The path for the new URI with '/' separating path elements.

query

The query string for the new URI with '&' separating query elements. Elements containing '&' characters should encode them as "%26".

fragment

The fragment name for the new URI.

Returns:

A new Uri object.




2022 vala-language.org