Skip to content

Commit

Permalink
Merge pull request #272 from pace/expose-external-dependency-round-tr…
Browse files Browse the repository at this point in the history
…ipper-name

Expose name for external dependency round tripper in creation
  • Loading branch information
threez authored Jul 19, 2021
2 parents 13c1804 + 188fa6c commit 9f596a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions http/transport/external_dependency_round_tripper.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ type ExternalDependencyRoundTripper struct {
transport http.RoundTripper
}

func NewExternalDependencyRoundTripper(name string) *ExternalDependencyRoundTripper {
return &ExternalDependencyRoundTripper{name: name}
}

// Transport returns the RoundTripper to make HTTP requests
func (l *ExternalDependencyRoundTripper) Transport() http.RoundTripper {
return l.transport
Expand Down

0 comments on commit 9f596a6

Please sign in to comment.