Skip to content

Commit

Permalink
Document basic_auth option (#531)
Browse files Browse the repository at this point in the history
It wasn't obvious how to use basic auth with hackney.
This patch adds a like of docs for the `basic_auth` option.
  • Loading branch information
mbuhot authored and benoitc committed Sep 14, 2018
1 parent aa41e75 commit daf085b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hackney.erl
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ request(Method, URL, Headers, Body) ->
%% redirection for a request</li>
%% <li>`{force_redirect, boolean}': false by default, to force the
%% redirection even on POST</li>
%% <li>`{basic_auth, {binary, binary}}`: HTTP basic auth username and password.</li>
%% <li>`{proxy, proxy_options()}': to connect via a proxy.</li>
%% <li>`insecure': to perform "insecure" SSL connections and
%% transfers without checking the certificate</li>
Expand Down

0 comments on commit daf085b

Please sign in to comment.