Skip to content

Commit

Permalink
Merge pull request #49 from bvesterby/main
Browse files Browse the repository at this point in the history
feat: adding support for the http.RoundTripper
  • Loading branch information
benjivesterby authored Nov 12, 2024
2 parents 28a0d04 + 93d412a commit 166a73b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions exported.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ func (k *keeper) cleanup() {
}
}

// RoundTrip is a wrapper for the Do method of the bridgekeeper. This is
// necessary for the bridgekeeper to implement the http.RoundTripper
func (k *keeper) RoundTrip(req *http.Request) (*http.Response, error) {
return k.Do(req)
}

// Do sends the http request through the bridgekeeper to be executed against the
// endpoint when there are available threads to do so. This returns an http
// response which is returned from the execution of the http request as well
Expand Down

0 comments on commit 166a73b

Please sign in to comment.