commit | 76485d3c29f05a97bdc1d0d96d847d0a447fea76 | [log] [tgz] |
---|---|---|
author | xinsnake <me@xyzhou.com> | Sat Mar 25 17:07:39 2017 +1100 |
committer | GitHub <noreply@github.com> | Sat Mar 25 17:07:39 2017 +1100 |
tree | 6ec48b67612b591b6b5d0b3a00fb864f5fa7fa0e | |
parent | bb704c7a5292f23a734ab74d44ecca0e4cb61bce [diff] | |
parent | 87c2841f1f42ea4c9eee904628d77abee674f029 [diff] |
Merge pull request #1 from tatsumi33/fix-httpresponse-errorcheck Add error check for HTTP response
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*