Skip to content

Soontao/goHttpDigestClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-http-digest-client

Build Status Coverage Status

Library just for http digest auth, and refer RFC-2617

install

get -u -v github.com/Soontao/goHttpDigestClient

usage

func TestClientAuthorize(t *testing.T) {
  req, err := http.NewRequest("GET", testDigestAuthServerURL, nil)
  if err != nil {
    t.Fatal(err)
  }
  opt := &ClientOption{username: testServerUsername, password: testServerPassword}
  res, err := DefaultClient.Do(req, opt)
}

todo

  • if option in Client, only need 1 request get challenge

About

golang http digest auth client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages