Class Uri
public class Uri
- Inheritance
-
Uri
- Inherited Members
Methods
Build(UriFlags, NonNullableUtf8StringHandle, NullableUtf8StringHandle, NullableUtf8StringHandle, int, NonNullableUtf8StringHandle, NullableUtf8StringHandle, NullableUtf8StringHandle)
Calls native function g_uri_build. Version: 2.66
[Version("2.66")]
public static extern UriOwnedHandle Build(UriFlags flags, NonNullableUtf8StringHandle scheme, NullableUtf8StringHandle userinfo, NullableUtf8StringHandle host, int port, NonNullableUtf8StringHandle path, NullableUtf8StringHandle query, NullableUtf8StringHandle fragment)
Parameters
flags
UriFlagsTransfer ownership: None Nullable: False
scheme
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
userinfo
NullableUtf8StringHandleTransfer ownership: None Nullable: True
host
NullableUtf8StringHandleTransfer ownership: None Nullable: True
port
intTransfer ownership: None Nullable: False
path
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
query
NullableUtf8StringHandleTransfer ownership: None Nullable: True
fragment
NullableUtf8StringHandleTransfer ownership: None Nullable: True
Returns
- UriOwnedHandle
Transfer ownership: Full Nullable: False
BuildWithUser(UriFlags, NonNullableUtf8StringHandle, NullableUtf8StringHandle, NullableUtf8StringHandle, NullableUtf8StringHandle, NullableUtf8StringHandle, int, NonNullableUtf8StringHandle, NullableUtf8StringHandle, NullableUtf8StringHandle)
Calls native function g_uri_build_with_user. Version: 2.66
[Version("2.66")]
public static extern UriOwnedHandle BuildWithUser(UriFlags flags, NonNullableUtf8StringHandle scheme, NullableUtf8StringHandle user, NullableUtf8StringHandle password, NullableUtf8StringHandle authParams, NullableUtf8StringHandle host, int port, NonNullableUtf8StringHandle path, NullableUtf8StringHandle query, NullableUtf8StringHandle fragment)
Parameters
flags
UriFlagsTransfer ownership: None Nullable: False
scheme
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
user
NullableUtf8StringHandleTransfer ownership: None Nullable: True
password
NullableUtf8StringHandleTransfer ownership: None Nullable: True
authParams
NullableUtf8StringHandleTransfer ownership: None Nullable: True
host
NullableUtf8StringHandleTransfer ownership: None Nullable: True
port
intTransfer ownership: None Nullable: False
path
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
query
NullableUtf8StringHandleTransfer ownership: None Nullable: True
fragment
NullableUtf8StringHandleTransfer ownership: None Nullable: True
Returns
- UriOwnedHandle
Transfer ownership: Full Nullable: False
ErrorQuark()
Calls native function g_uri_error_quark.
public static extern uint ErrorQuark()
Returns
- uint
Transfer ownership: None Nullable: False
EscapeBytes(ref byte, nuint, NullableUtf8StringHandle)
Calls native function g_uri_escape_bytes. Version: 2.66
[Version("2.66")]
public static extern NonNullableUtf8StringOwnedHandle EscapeBytes(ref byte unescaped, nuint length, NullableUtf8StringHandle reservedCharsAllowed)
Parameters
unescaped
byteTransfer ownership: None Nullable: False
length
nuintTransfer ownership: None Nullable: False
reservedCharsAllowed
NullableUtf8StringHandleTransfer ownership: None Nullable: True
Returns
- NonNullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: False
EscapeString(NonNullableUtf8StringHandle, NullableUtf8StringHandle, bool)
Calls native function g_uri_escape_string. Version: 2.16
[Version("2.16")]
public static extern NonNullableUtf8StringOwnedHandle EscapeString(NonNullableUtf8StringHandle unescaped, NullableUtf8StringHandle reservedCharsAllowed, bool allowUtf8)
Parameters
unescaped
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
reservedCharsAllowed
NullableUtf8StringHandleTransfer ownership: None Nullable: True
allowUtf8
boolTransfer ownership: None Nullable: False
Returns
- NonNullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: False
GetAuthParams(UriHandle)
Calls native method g_uri_get_auth_params. Version: 2.66
[Version("2.66")]
public static extern NullableUtf8StringUnownedHandle GetAuthParams(UriHandle uri)
Parameters
uri
UriHandleTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: True
GetFlags(UriHandle)
Calls native method g_uri_get_flags. Version: 2.66
[Version("2.66")]
public static extern UriFlags GetFlags(UriHandle uri)
Parameters
uri
UriHandleTransfer ownership: None Nullable: False
Returns
- UriFlags
Transfer ownership: None Nullable: False
GetFragment(UriHandle)
Calls native method g_uri_get_fragment. Version: 2.66
[Version("2.66")]
public static extern NullableUtf8StringUnownedHandle GetFragment(UriHandle uri)
Parameters
uri
UriHandleTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: True
GetGType()
Calls native function g_uri_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
GetHost(UriHandle)
Calls native method g_uri_get_host. Version: 2.66
[Version("2.66")]
public static extern NullableUtf8StringUnownedHandle GetHost(UriHandle uri)
Parameters
uri
UriHandleTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: True
GetPassword(UriHandle)
Calls native method g_uri_get_password. Version: 2.66
[Version("2.66")]
public static extern NullableUtf8StringUnownedHandle GetPassword(UriHandle uri)
Parameters
uri
UriHandleTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: True
GetPath(UriHandle)
Calls native method g_uri_get_path. Version: 2.66
[Version("2.66")]
public static extern NonNullableUtf8StringUnownedHandle GetPath(UriHandle uri)
Parameters
uri
UriHandleTransfer ownership: None Nullable: False
Returns
- NonNullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: False
GetPort(UriHandle)
Calls native method g_uri_get_port. Version: 2.66
[Version("2.66")]
public static extern int GetPort(UriHandle uri)
Parameters
uri
UriHandleTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetQuery(UriHandle)
Calls native method g_uri_get_query. Version: 2.66
[Version("2.66")]
public static extern NullableUtf8StringUnownedHandle GetQuery(UriHandle uri)
Parameters
uri
UriHandleTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: True
GetScheme(UriHandle)
Calls native method g_uri_get_scheme. Version: 2.66
[Version("2.66")]
public static extern NonNullableUtf8StringUnownedHandle GetScheme(UriHandle uri)
Parameters
uri
UriHandleTransfer ownership: None Nullable: False
Returns
- NonNullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: False
GetUser(UriHandle)
Calls native method g_uri_get_user. Version: 2.66
[Version("2.66")]
public static extern NullableUtf8StringUnownedHandle GetUser(UriHandle uri)
Parameters
uri
UriHandleTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: True
GetUserinfo(UriHandle)
Calls native method g_uri_get_userinfo. Version: 2.66
[Version("2.66")]
public static extern NullableUtf8StringUnownedHandle GetUserinfo(UriHandle uri)
Parameters
uri
UriHandleTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: True
IsValid(NonNullableUtf8StringHandle, UriFlags, out ErrorOwnedHandle)
Calls native function g_uri_is_valid. Version: 2.66
[Version("2.66")]
public static extern bool IsValid(NonNullableUtf8StringHandle uriString, UriFlags flags, out ErrorOwnedHandle error)
Parameters
uriString
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
flags
UriFlagsTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- bool
Transfer ownership: None Nullable: False
Join(UriFlags, NullableUtf8StringHandle, NullableUtf8StringHandle, NullableUtf8StringHandle, int, NonNullableUtf8StringHandle, NullableUtf8StringHandle, NullableUtf8StringHandle)
Calls native function g_uri_join. Version: 2.66
[Version("2.66")]
public static extern NonNullableUtf8StringOwnedHandle Join(UriFlags flags, NullableUtf8StringHandle scheme, NullableUtf8StringHandle userinfo, NullableUtf8StringHandle host, int port, NonNullableUtf8StringHandle path, NullableUtf8StringHandle query, NullableUtf8StringHandle fragment)
Parameters
flags
UriFlagsTransfer ownership: None Nullable: False
scheme
NullableUtf8StringHandleTransfer ownership: None Nullable: True
userinfo
NullableUtf8StringHandleTransfer ownership: None Nullable: True
host
NullableUtf8StringHandleTransfer ownership: None Nullable: True
port
intTransfer ownership: None Nullable: False
path
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
query
NullableUtf8StringHandleTransfer ownership: None Nullable: True
fragment
NullableUtf8StringHandleTransfer ownership: None Nullable: True
Returns
- NonNullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: False
JoinWithUser(UriFlags, NullableUtf8StringHandle, NullableUtf8StringHandle, NullableUtf8StringHandle, NullableUtf8StringHandle, NullableUtf8StringHandle, int, NonNullableUtf8StringHandle, NullableUtf8StringHandle, NullableUtf8StringHandle)
Calls native function g_uri_join_with_user. Version: 2.66
[Version("2.66")]
public static extern NonNullableUtf8StringOwnedHandle JoinWithUser(UriFlags flags, NullableUtf8StringHandle scheme, NullableUtf8StringHandle user, NullableUtf8StringHandle password, NullableUtf8StringHandle authParams, NullableUtf8StringHandle host, int port, NonNullableUtf8StringHandle path, NullableUtf8StringHandle query, NullableUtf8StringHandle fragment)
Parameters
flags
UriFlagsTransfer ownership: None Nullable: False
scheme
NullableUtf8StringHandleTransfer ownership: None Nullable: True
user
NullableUtf8StringHandleTransfer ownership: None Nullable: True
password
NullableUtf8StringHandleTransfer ownership: None Nullable: True
authParams
NullableUtf8StringHandleTransfer ownership: None Nullable: True
host
NullableUtf8StringHandleTransfer ownership: None Nullable: True
port
intTransfer ownership: None Nullable: False
path
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
query
NullableUtf8StringHandleTransfer ownership: None Nullable: True
fragment
NullableUtf8StringHandleTransfer ownership: None Nullable: True
Returns
- NonNullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: False
ListExtractUris(NonNullableUtf8StringHandle)
Calls native function g_uri_list_extract_uris. Version: 2.6
[Version("2.6")]
public static extern Utf8StringArrayNullTerminatedOwnedHandle ListExtractUris(NonNullableUtf8StringHandle uriList)
Parameters
uriList
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- Utf8StringArrayNullTerminatedOwnedHandle
Transfer ownership: Full Nullable: False
Parse(NonNullableUtf8StringHandle, UriFlags, out ErrorOwnedHandle)
Calls native function g_uri_parse. Version: 2.66
[Version("2.66")]
public static extern UriOwnedHandle Parse(NonNullableUtf8StringHandle uriString, UriFlags flags, out ErrorOwnedHandle error)
Parameters
uriString
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
flags
UriFlagsTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- UriOwnedHandle
Transfer ownership: Full Nullable: False
ParseParams(NonNullableUtf8StringHandle, long, NonNullableUtf8StringHandle, UriParamsFlags, out ErrorOwnedHandle)
Calls native function g_uri_parse_params. Version: 2.66
[Version("2.66")]
public static extern HashTableOwnedHandle ParseParams(NonNullableUtf8StringHandle @params, long length, NonNullableUtf8StringHandle separators, UriParamsFlags flags, out ErrorOwnedHandle error)
Parameters
params
NonNullableUtf8StringHandlelength
longTransfer ownership: None Nullable: False
separators
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
flags
UriParamsFlagsTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- HashTableOwnedHandle
Transfer ownership: Full Nullable: False
ParseRelative(UriHandle, NonNullableUtf8StringHandle, UriFlags, out ErrorOwnedHandle)
Calls native method g_uri_parse_relative. Version: 2.66
[Version("2.66")]
public static extern UriOwnedHandle ParseRelative(UriHandle baseUri, NonNullableUtf8StringHandle uriRef, UriFlags flags, out ErrorOwnedHandle error)
Parameters
baseUri
UriHandleTransfer ownership: None Nullable: True
uriRef
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
flags
UriFlagsTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- UriOwnedHandle
Transfer ownership: Full Nullable: False
ParseScheme(NonNullableUtf8StringHandle)
Calls native function g_uri_parse_scheme. Version: 2.16
[Version("2.16")]
public static extern NullableUtf8StringOwnedHandle ParseScheme(NonNullableUtf8StringHandle uri)
Parameters
uri
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: True
PeekScheme(NonNullableUtf8StringHandle)
Calls native function g_uri_peek_scheme. Version: 2.66
[Version("2.66")]
public static extern NullableUtf8StringUnownedHandle PeekScheme(NonNullableUtf8StringHandle uri)
Parameters
uri
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: True
Ref(UriHandle)
Calls native method g_uri_ref. Version: 2.66
[Version("2.66")]
public static extern UriOwnedHandle Ref(UriHandle uri)
Parameters
uri
UriHandleTransfer ownership: None Nullable: False
Returns
- UriOwnedHandle
Transfer ownership: Full Nullable: False
ResolveRelative(NullableUtf8StringHandle, NonNullableUtf8StringHandle, UriFlags, out ErrorOwnedHandle)
Calls native function g_uri_resolve_relative. Version: 2.66
[Version("2.66")]
public static extern NonNullableUtf8StringOwnedHandle ResolveRelative(NullableUtf8StringHandle baseUriString, NonNullableUtf8StringHandle uriRef, UriFlags flags, out ErrorOwnedHandle error)
Parameters
baseUriString
NullableUtf8StringHandleTransfer ownership: None Nullable: True
uriRef
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
flags
UriFlagsTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- NonNullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: False
Split(NonNullableUtf8StringHandle, UriFlags, out NullableUtf8StringOwnedHandle, out NullableUtf8StringOwnedHandle, out NullableUtf8StringOwnedHandle, out int, out NonNullableUtf8StringOwnedHandle, out NullableUtf8StringOwnedHandle, out NullableUtf8StringOwnedHandle, out ErrorOwnedHandle)
Calls native function g_uri_split. Version: 2.66
[Version("2.66")]
public static extern bool Split(NonNullableUtf8StringHandle uriRef, UriFlags flags, out NullableUtf8StringOwnedHandle scheme, out NullableUtf8StringOwnedHandle userinfo, out NullableUtf8StringOwnedHandle host, out int port, out NonNullableUtf8StringOwnedHandle path, out NullableUtf8StringOwnedHandle query, out NullableUtf8StringOwnedHandle fragment, out ErrorOwnedHandle error)
Parameters
uriRef
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
flags
UriFlagsTransfer ownership: None Nullable: False
scheme
NullableUtf8StringOwnedHandleTransfer ownership: Full Nullable: True
userinfo
NullableUtf8StringOwnedHandleTransfer ownership: Full Nullable: True
host
NullableUtf8StringOwnedHandleTransfer ownership: Full Nullable: True
port
intTransfer ownership: Full Nullable: False
path
NonNullableUtf8StringOwnedHandleTransfer ownership: Full Nullable: False
query
NullableUtf8StringOwnedHandleTransfer ownership: Full Nullable: True
fragment
NullableUtf8StringOwnedHandleTransfer ownership: Full Nullable: True
error
ErrorOwnedHandle
Returns
- bool
Transfer ownership: None Nullable: False
SplitNetwork(NonNullableUtf8StringHandle, UriFlags, out NullableUtf8StringOwnedHandle, out NullableUtf8StringOwnedHandle, out int, out ErrorOwnedHandle)
Calls native function g_uri_split_network. Version: 2.66
[Version("2.66")]
public static extern bool SplitNetwork(NonNullableUtf8StringHandle uriString, UriFlags flags, out NullableUtf8StringOwnedHandle scheme, out NullableUtf8StringOwnedHandle host, out int port, out ErrorOwnedHandle error)
Parameters
uriString
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
flags
UriFlagsTransfer ownership: None Nullable: False
scheme
NullableUtf8StringOwnedHandleTransfer ownership: Full Nullable: True
host
NullableUtf8StringOwnedHandleTransfer ownership: Full Nullable: True
port
intTransfer ownership: Full Nullable: False
error
ErrorOwnedHandle
Returns
- bool
Transfer ownership: None Nullable: False
SplitWithUser(NonNullableUtf8StringHandle, UriFlags, out NullableUtf8StringOwnedHandle, out NullableUtf8StringOwnedHandle, out NullableUtf8StringOwnedHandle, out NullableUtf8StringOwnedHandle, out NullableUtf8StringOwnedHandle, out int, out NonNullableUtf8StringOwnedHandle, out NullableUtf8StringOwnedHandle, out NullableUtf8StringOwnedHandle, out ErrorOwnedHandle)
Calls native function g_uri_split_with_user. Version: 2.66
[Version("2.66")]
public static extern bool SplitWithUser(NonNullableUtf8StringHandle uriRef, UriFlags flags, out NullableUtf8StringOwnedHandle scheme, out NullableUtf8StringOwnedHandle user, out NullableUtf8StringOwnedHandle password, out NullableUtf8StringOwnedHandle authParams, out NullableUtf8StringOwnedHandle host, out int port, out NonNullableUtf8StringOwnedHandle path, out NullableUtf8StringOwnedHandle query, out NullableUtf8StringOwnedHandle fragment, out ErrorOwnedHandle error)
Parameters
uriRef
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
flags
UriFlagsTransfer ownership: None Nullable: False
scheme
NullableUtf8StringOwnedHandleTransfer ownership: Full Nullable: True
user
NullableUtf8StringOwnedHandleTransfer ownership: Full Nullable: True
password
NullableUtf8StringOwnedHandleTransfer ownership: Full Nullable: True
authParams
NullableUtf8StringOwnedHandleTransfer ownership: Full Nullable: True
host
NullableUtf8StringOwnedHandleTransfer ownership: Full Nullable: True
port
intTransfer ownership: Full Nullable: False
path
NonNullableUtf8StringOwnedHandleTransfer ownership: Full Nullable: False
query
NullableUtf8StringOwnedHandleTransfer ownership: Full Nullable: True
fragment
NullableUtf8StringOwnedHandleTransfer ownership: Full Nullable: True
error
ErrorOwnedHandle
Returns
- bool
Transfer ownership: None Nullable: False
ToString(UriHandle)
Calls native method g_uri_to_string. Version: 2.66
[Version("2.66")]
public static extern NonNullableUtf8StringOwnedHandle ToString(UriHandle uri)
Parameters
uri
UriHandleTransfer ownership: None Nullable: False
Returns
- NonNullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: False
ToStringPartial(UriHandle, UriHideFlags)
Calls native method g_uri_to_string_partial. Version: 2.66
[Version("2.66")]
public static extern NonNullableUtf8StringOwnedHandle ToStringPartial(UriHandle uri, UriHideFlags flags)
Parameters
uri
UriHandleTransfer ownership: None Nullable: False
flags
UriHideFlagsTransfer ownership: None Nullable: False
Returns
- NonNullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: False
UnescapeBytes(NonNullableUtf8StringHandle, long, NullableUtf8StringHandle, out ErrorOwnedHandle)
Calls native function g_uri_unescape_bytes. Version: 2.66
[Version("2.66")]
public static extern BytesOwnedHandle UnescapeBytes(NonNullableUtf8StringHandle escapedString, long length, NullableUtf8StringHandle illegalCharacters, out ErrorOwnedHandle error)
Parameters
escapedString
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
length
longTransfer ownership: None Nullable: False
illegalCharacters
NullableUtf8StringHandleTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- BytesOwnedHandle
Transfer ownership: Full Nullable: False
UnescapeSegment(NullableUtf8StringHandle, NullableUtf8StringHandle, NullableUtf8StringHandle)
Calls native function g_uri_unescape_segment. Version: 2.16
[Version("2.16")]
public static extern NullableUtf8StringOwnedHandle UnescapeSegment(NullableUtf8StringHandle escapedString, NullableUtf8StringHandle escapedStringEnd, NullableUtf8StringHandle illegalCharacters)
Parameters
escapedString
NullableUtf8StringHandleTransfer ownership: None Nullable: True
escapedStringEnd
NullableUtf8StringHandleTransfer ownership: None Nullable: True
illegalCharacters
NullableUtf8StringHandleTransfer ownership: None Nullable: True
Returns
- NullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: True
UnescapeString(NonNullableUtf8StringHandle, NullableUtf8StringHandle)
Calls native function g_uri_unescape_string. Version: 2.16
[Version("2.16")]
public static extern NullableUtf8StringOwnedHandle UnescapeString(NonNullableUtf8StringHandle escapedString, NullableUtf8StringHandle illegalCharacters)
Parameters
escapedString
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
illegalCharacters
NullableUtf8StringHandleTransfer ownership: None Nullable: True
Returns
- NullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: True
Unref(UriHandle)
Calls native method g_uri_unref. Version: 2.66
[Version("2.66")]
public static extern void Unref(UriHandle uri)
Parameters
uri
UriHandleTransfer ownership: None Nullable: False