Skip to content

Commit

Permalink
CLOUDP-237245: adding helper for using Http transport interface (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtrocki committed Mar 26, 2024
1 parent 3fb050e commit 104934e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions digest.go
Expand Up @@ -124,6 +124,16 @@ func NewTransportWithHTTPTransport(username, password string, transport *http.Tr
return t
}

// NewTransportWithHTTPRoundTripper creates a new digest transport using the supplied http.RoundTripper interface.
func NewTransportWithHTTPRoundTripper(username, password string, transport http.RoundTripper) *Transport {
t := &Transport{
Username: username,
Password: password,
Transport: transport,
}
return t
}

type challenge struct {
Realm string
Domain string
Expand Down

0 comments on commit 104934e

Please sign in to comment.