Add HTTP Proxy to ClientOptions#27
Open
4cecoder wants to merge 1 commit into
Open
Conversation
Fixes supabase-community#26 Add HTTP Proxy support to ClientOptions. * **client.go** - Add `Proxy` field to `ClientOptions` struct to configure HTTP Proxy. - Update `NewClient` function to use `Proxy` field if provided. - Update `clientOptions` struct to include `proxy` field. - Update `NewClient` function to set `proxy` field in `clientOptions`. * **client_test.go** - Add test cases to verify HTTP Proxy functionality in `TestFrom`. - Add test cases to verify HTTP Proxy functionality in `TestRpc`. - Add test cases to verify HTTP Proxy functionality in `TestStorage`. - Add test cases to verify HTTP Proxy functionality in `TestFunctions`. * **README.md** - Add documentation on how to configure HTTP Proxy in `ClientOptions`. - Add example code snippet for configuring HTTP Proxy. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/supabase-community/supabase-go/issues/26?shareId=XXXX-XXXX-XXXX-XXXX).
0x113
approved these changes
Jan 31, 2025
0x113
left a comment
There was a problem hiding this comment.
Looks good to me, but I guess we need to wait for the contributors to take a look.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #26
Add HTTP Proxy support to ClientOptions.
client.go
Proxyfield toClientOptionsstruct to configure HTTP Proxy.NewClientfunction to useProxyfield if provided.clientOptionsstruct to includeproxyfield.NewClientfunction to setproxyfield inclientOptions.client_test.go
TestFrom.TestRpc.TestStorage.TestFunctions.README.md
ClientOptions.For more details, open the Copilot Workspace session.