Skip to content

[wip] refactor: accept httpx client #201

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

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

Conversation

grdsdev
Copy link
Contributor

@grdsdev grdsdev commented May 6, 2025

What kind of change does this PR introduce?

Bug fix, feature, docs update, ...

What is the current behavior?

Please link any relevant issues here.

What is the new behavior?

Feel free to include screenshots if it includes visual changes.

Additional context

Add any other context or screenshots.

@grdsdev
Copy link
Contributor Author

grdsdev commented May 6, 2025

@silentworks was doing a few tests for solving supabase/supabase-py#1091 issue, can you check this changes? I think this is the way, we should do something similar on all libs.

http2=True,
)

if timeout is not None:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea of deprecating these and suggesting to handle this in your httpx client yourself.

self._client = httpx
self._client.base_url = self.url
self._client.headers = self.headers
self._client.follow_redirects = True
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe these params should be set besides the base_url and headers. The others should be handled by the developer when they decide to use their own httpx client.

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