feross / simple-get

Simplest way to make http get requests. Supports HTTPS, redirects, gzip/deflate, streams in < 100 lines
MIT License
401 stars 50 forks source link

Switch implementation and public api to WHATWG URL style #78

Open LinusU opened 2 years ago

LinusU commented 2 years ago

This switches the public API to use the options defined by WHATWG URL instead of Node.js http.request. Avoids depending on deprecated url and querystring. Background discussion in https://github.com/feross/simple-get/pull/55#issuecomment-1030846150

(targeting gh-actions for now but will rebase on master once #77 is merged)

We probably want to update the readme to add more documentation on allowed properties:

Fixes #53, Fixes #50