An opaque pointer type representing a collection of strings (e.g., multiple values for a query parameter).
An opaque pointer type representing a parsed URL in the Ada library.
An opaque pointer type representing URL search (query) parameters in the Ada library.
An opaque pointer type representing an iterator over search parameter key-value pairs.
An opaque pointer type representing an iterator over search parameter keys.
An opaque pointer type representing an iterator over search parameter values.
Checks if a URL string can be parsed. The input must be a null-terminated C string (ASCII or UTF-8).
Checks if a URL string can be parsed with a base URL. Both input and base must be null-terminated C strings (ASCII or UTF-8).
Clears the hash (fragment) component of a parsed URL. Has no effect if the URL is invalid.
Clears the port component of a parsed URL. Has no effect if the URL is invalid.
Clears the search (query) component of a parsed URL. Has no effect if the URL is invalid.
Creates a copy of a parsed URL.
Frees the resources associated with a parsed URL.
Frees the resources associated with an owned string.
Frees the resources associated with search parameters.
Frees the resources associated with a search parameters entries iterator.
Frees the resources associated with a search parameters keys iterator.
Frees the resources associated with a search parameters values iterator.
Frees the resources associated with a string collection.
Retrieves the internal components of a parsed URL.
Retrieves the hash (fragment) component of a parsed URL. Returns an empty string if the URL is invalid or no hash is present.
Retrieves the host component of a parsed URL (hostname + port). Returns an empty string if the URL is invalid or no host is present.
Retrieves the host type of a parsed URL. Returns an undefined value if the URL is invalid.
Retrieves the hostname component of a parsed URL. Returns an empty string if the URL is invalid or no hostname is present.
Retrieves the full URL (href) as a string. Returns an empty string if the URL is invalid.
Retrieves the origin of a parsed URL (e.g., protocol + host + port). Returns an empty string if the URL is invalid.
Retrieves the password component of a parsed URL. Returns an empty string if the URL is invalid or no password is present.
Retrieves the pathname component of a parsed URL. Returns an empty string if the URL is invalid or no pathname is present.
Retrieves the port component of a parsed URL. Returns an empty string if the URL is invalid or no port is present.
Retrieves the protocol component of a parsed URL (e.g., "http:"). Returns an empty string if the URL is invalid or no protocol is present.
Retrieves the scheme type of a parsed URL. Returns an undefined value if the URL is invalid.
Retrieves the search (query) component of a parsed URL. Returns an empty string if the URL is invalid or no search is present.
Retrieves the username component of a parsed URL. Returns an empty string if the URL is invalid or no username is present.
Checks if a parsed URL has credentials (username or password). Returns false if the URL is invalid.
Checks if a parsed URL has an empty hostname. Returns false if the URL is invalid.
Checks if a parsed URL has a hash (fragment). Returns false if the URL is invalid.
Checks if a parsed URL has a hostname. Returns false if the URL is invalid.
Checks if a parsed URL has a non-empty password. Returns false if the URL is invalid.
Checks if a parsed URL has a non-empty username. Returns false if the URL is invalid.
Checks if a parsed URL has a password. Returns false if the URL is invalid.
Checks if a parsed URL has a port. Returns false if the URL is invalid.
Checks if a parsed URL has a search (query) component. Returns false if the URL is invalid.
Converts a Unicode string to IDNA-encoded ASCII.
Converts an IDNA-encoded string to Unicode.
Checks if a parsed URL is valid.
Parses a URL string and returns a handle to the parsed URL. The input must be a null-terminated C string (ASCII or UTF-8).
Parses a query string into search parameters.
Parses a URL string with a base URL for relative URL resolution. Both input and base must be null-terminated C strings (ASCII or UTF-8).
Appends a key-value pair to search parameters.
Checks if there are more key-value pairs in a search parameters entries iterator.
Retrieves the next key-value pair from a search parameters entries iterator.
Retrieves the value for a given key in search parameters.
Retrieves all values for a given key in search parameters.
Retrieves an iterator for the key-value pairs in search parameters.
Retrieves an iterator for the keys in search parameters.
Retrieves an iterator for the values in search parameters.
Checks if a key exists in search parameters.
Checks if a key-value pair exists in search parameters.
Checks if there are more keys in a search parameters keys iterator.
Retrieves the next key from a search parameters keys iterator.
Removes all values for a given key in search parameters.
Removes a specific key-value pair from search parameters.
Resets search parameters to a new query string.
Sets a key-value pair in search parameters, replacing any existing values for the key.
Retrieves the number of key-value pairs in search parameters.
Sorts the search parameters by key.
Converts search parameters to a query string.
Checks if there are more values in a search parameters values iterator.
Retrieves the next value from a search parameters values iterator.
Sets the hash (fragment) component of a parsed URL. Has no effect if the URL is invalid.
Sets the host component of a parsed URL. Has no effect if the URL is invalid.
Sets the hostname component of a parsed URL. Has no effect if the URL is invalid.
Sets the full URL (href) of a parsed URL. Has no effect if the URL is invalid.
Sets the password component of a parsed URL. Has no effect if the URL is invalid.
Sets the pathname component of a parsed URL. Has no effect if the URL is invalid.
Sets the port component of a parsed URL. Has no effect if the URL is invalid.
Sets the protocol component of a parsed URL. Has no effect if the URL is invalid.
Sets the search (query) component of a parsed URL. Has no effect if the URL is invalid.
Sets the username component of a parsed URL. Has no effect if the URL is invalid.
Retrieves a string at a specific index in a collection.
Retrieves the number of strings in a collection.
A struct representing a string that must be freed by the caller. Typically used for strings returned by the Ada library that require manual memory management.
A struct representing a string owned by the ada_url instance. The string is managed by the Ada library and does not require manual freeing.
A struct representing a key-value pair in search parameters.
A struct representing the components of a parsed URL. Each field indicates the position or value of a URL component, with ada_url_omitted indicating an absent component.
A constant representing an omitted URL component. Equivalent to uint32_t(-1) in the Ada library, used in ada_url_components to indicate absence.