Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Crawler ¶
type DigestHeaders ¶ added in v0.12.0
type DigestHeaders struct { Realm string Qop string Method string Nonce string Opaque string Algorithm string HA1 string HA2 string Cnonce string Path string Nc int16 Username string Password string }
DigestHeaders tracks the state of authentication
func (*DigestHeaders) ApplyAuth ¶ added in v0.12.0
func (d *DigestHeaders) ApplyAuth(req *http.Request)
ApplyAuth adds proper auth header to the passed request
func (*DigestHeaders) Auth ¶ added in v0.12.0
func (d *DigestHeaders) Auth(username string, password string, uri string) (*DigestHeaders, error)
Auth authenticates against a given URI
Click to show internal directories.
Click to hide internal directories.