Skip to content

Commit daf085b

Browse files
mbuhotbenoitc
authored andcommitted
Document basic_auth option (#531)
It wasn't obvious how to use basic auth with hackney. This patch adds a like of docs for the `basic_auth` option.
1 parent aa41e75 commit daf085b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/hackney.erl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ request(Method, URL, Headers, Body) ->
235235
%% redirection for a request</li>
236236
%% <li>`{force_redirect, boolean}': false by default, to force the
237237
%% redirection even on POST</li>
238+
%% <li>`{basic_auth, {binary, binary}}`: HTTP basic auth username and password.</li>
238239
%% <li>`{proxy, proxy_options()}': to connect via a proxy.</li>
239240
%% <li>`insecure': to perform "insecure" SSL connections and
240241
%% transfers without checking the certificate</li>

0 commit comments

Comments
 (0)