r-lib / httr2

Make HTTP requests and process their responses. A modern reimagining of httr.
https://httr2.r-lib.org
Other
238 stars 59 forks source link

url_build() doesn't validate argument #482

Open JosiahParry opened 4 months ago

JosiahParry commented 4 months ago

It's quite clear I didn't perfectly read the docs! But it would be quite nice if invalid names are found that an error (and better and informative one!) are provided.

httr2::url_build(list(host = host, port = port))
#> "//:3000"

Whereas I expected:

#> "http://127.0.0.1:3000"