Got: HTTP Basic Auth

Created on 5 Mar 2016  路  2Comments  路  Source: sindresorhus/got

Does got support HTTP basic auth? The code references an auth option, but none seems to currently exist. Of course, I can manually base64 encode my authentication data and pass it in through the Authorization header, but I would expect an HTTP request library to do that for me.

Most helpful comment

OK, now I see that the documentation says the options argument supports "any of the http.request options." I should have read it more carefully. Thanks for making this awesome module; it's a pleasure to use it!

All 2 comments

OK, now I see that the documentation says the options argument supports "any of the http.request options." I should have read it more carefully. Thanks for making this awesome module; it's a pleasure to use it!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alanzhaonys picture alanzhaonys  路  4Comments

f-mer picture f-mer  路  4Comments

joolfe picture joolfe  路  3Comments

tkoelpin picture tkoelpin  路  3Comments

framerate picture framerate  路  4Comments