go-httpclient icon indicating copy to clipboard operation
go-httpclient copied to clipboard

Basic Auth utility feature

Open joaoqalves opened this issue 4 years ago • 0 comments

Hi,

This library reminds me of how much I love Python's requests. One thing that I miss is a utility to pass a (username, password) pair easily. Something around these lines:

httpclient.WithBasicAuth(username, password).Get(url)

Do you think it's worth implementing? I can submit a PR if you like it.

joaoqalves avatar Feb 09 '20 17:02 joaoqalves