ada_get_origin

Retrieves the origin of a parsed URL (e.g., protocol + host + port). Returns an empty string if the URL is invalid.

extern (C) @nogc nothrow @safe @trusted
ada_get_origin
()

Parameters

result ada_url

The ada_url handle.

Return Value

An ada_owned_string containing the origin, which must be freed with ada_free_owned_string.

Meta