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 HTTP Proxy to ClientOptions #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

4cecoder
Copy link

@4cecoder 4cecoder commented Dec 6, 2024

Fixes #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.

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).
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.

Add HTTP Proxy to ClientOptions
1 participant