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 authored 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
Original file line number Diff line number Diff line change
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.