It's possible to set the feature flags for curl.url_set using bit operations, but that's probably not the most convenient way to do it. Because curl uses a bitmask, named enum values won't work. I'm also not sure how important it is to modify the flags conveniently. For now, I guess this can wait.
See https://curl.se/libcurl/c/curl_url_set.html
Split off from #653.