reqwest icon indicating copy to clipboard operation
reqwest copied to clipboard

Support .netrc file

Open bachp opened this issue 1 year ago • 0 comments

Curl defines a .netrc format that allows to specify credentials per URL.

It is supported by various other projects including

There are already ways to do this via 3rd party crates like reqwest-netrc, but it requires the reqwest client to be wrapped in reqwest-middleware. Having this feature directly in reqwests would simplify providing authentication for projects depending on reqwests. For example to provide authentication to vargo-vet.

I think it would be beneficial to be enabled by default and have a builder option to opt out no_netrc. But an opt in via with_netrc would also be work

bachp avatar Oct 23 '24 15:10 bachp