Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Transport Option to allow egress proxies #35

Closed
wants to merge 1 commit into from

Conversation

DomBlack
Copy link
Contributor

@DomBlack DomBlack commented Aug 6, 2024

This commit adds a Transport to the Options struct when constructing a new instance of the Go SDK. If set it allows the end user to pass in their own http.RoundTripper instead of using http.DefaultTransport.

The reasoning for this change it to allow users to provide a transport which is capabile of acting as middleware for the outbound requests made by the SDK (such as allowing routing via an authenticated egress proxy).

This commit adds a `Transport` to the `Options` struct when constructing
a new instance of the Go SDK. If set it allows the end user to pass in
their own `http.RoundTripper` instead of using `http.DefaultTransport`.

The reasoning for this change it to allow users to provide a transport
which is capabile of acting as middleware for the outbound requests made
by the SDK (such as allowing routing via an authenticated egress proxy).
@kenny-statsig
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants