Skip to content
holepunchtoPublic

About

WHATWG URL parser in C

Resources

Stars

4 stars

Watchers

5 watching

Forks

Repository files navigation

liburl

WHATWG URL parser in C. Provides a memory efficient URL representation with immutable views over the various URL components, inspired by WebKit and Ada.

Usage

#include <url.h>
#include <utf.h>

url_t url
url_init(&url);

url_parse(&url, "https://example.com/foo/bar?baz", -1, NULL);

utf8_string_view_t href = url_get_href(&url);

url_destroy(&url);

API

See include/url.h for the public API.

License

Apache-2.0

About

WHATWG URL parser in C

Resources

Stars

4 stars

Watchers

5 watching

Forks

Used by

Contributors

Languages