g_uri_build() functions should accept a NULL scheme
For compatibility with libsoup's SoupURI it would be convenient if all of the URI building functions accepted not having a scheme.
Its usage is for when somebody wants to just get the path and query of a URI and not a full URI.
For example: g_uri_build (G_URI_FLAGS_ENCODED, NULL, NULL, NULL, -1, "/foo", "bar", NULL);
So a user can easily create /foo?bar
.
I can work on this if interested.