commit | 7d4c64bbb78f821ab571ccd04ca6345eb21da909 | [log] [tgz] |
---|---|---|
author | Xinyun Zhou <me@xyzhou.com> | Thu May 25 23:47:32 2017 +1000 |
committer | Xinyun Zhou <me@xyzhou.com> | Thu May 25 23:47:32 2017 +1000 |
tree | bdeab1576f5cd71a206e978e6b73d37b0b425e24 | |
parent | 76485d3c29f05a97bdc1d0d96d847d0a447fea76 [diff] |
implemented http.RoundTripper
Golang Http Digest Authentication Client
This client implements RFC7616 HTTP Digest Access Authentication and by now the basic features should work.
// import import dac "github.com/xinsnake/go-http-digest-auth-client" // create a new digest authentication request dr := dac.NewRequest(username, password, method, uri, payload) response1, err := dr.Execute() // check error, get response // reuse the existing digest authentication request so no extra request is needed dr.UpdateRequest(username, password, method, uri, payload) response2, err := dr.Execute() // check error, get response
username*