SetCommonBasicAuth set the basic auth for requests fired from the client.
(username, password string)
| 854 | // SetCommonBasicAuth set the basic auth for requests fired from |
| 855 | // the client. |
| 856 | func (c *Client) SetCommonBasicAuth(username, password string) *Client { |
| 857 | c.SetCommonHeader(header.Authorization, util.BasicAuthHeaderValue(username, password)) |
| 858 | return c |
| 859 | } |
| 860 | |
| 861 | // SetCommonDigestAuth sets the Digest Access auth scheme for requests fired from the client. If a server responds with |
| 862 | // 401 and sends a Digest challenge in the WWW-Authenticate Header, requests will be resent with the appropriate |