Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
digest
✓ github.com/mongodb-forks/digest
Create an HTTP client with Digest Authentication.
package main
import (
"fmt"
"net/http"
"github.com/mongodb-forks/digest"
)
func main() {
transport := digest.NewTransport("username", "password")
client := &http.Client{Transport: transport}
resp, err := client.Get("https://example.com")
if err != nil {
fmt.Println(err)
return
}
defer resp.Body.Close()
fmt.Println("Authenticated request succeeded")
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.1.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.