Registry /
http-client / xinsnake-go-http-digest-auth-client
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.
digestauth
✓ github.com/xinsnake/go-http-digest-auth-client
Makes an HTTP GET request with digest authentication.
package main
import (
"fmt"
"net/http"
"github.com/xinsnake/go-http-digest-auth-client"
)
func main() {
client := digestauth.NewTransport("username", "password")
req, _ := http.NewRequest("GET", "https://example.com/api", nil)
resp, err := client.RoundTrip(req)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(resp.Status)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.6.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.