Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion supabase_functions/_async/functions_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@


class AsyncFunctionsClient:
def __init__(self, url: str, headers: Dict, timeout: int, verify: bool = True):
def __init__(
self,
url: str,
headers: Dict,
timeout: int,
verify: bool = True,
proxy: Optional[str] = None,
):
self.url = url
self.headers = {
"User-Agent": f"supabase-py/functions-py v{__version__}",
Expand All @@ -19,6 +26,7 @@ def __init__(self, url: str, headers: Dict, timeout: int, verify: bool = True):
headers=self.headers,
verify=bool(verify),
timeout=timeout,
proxy=proxy,
follow_redirects=True,
http2=True,
)
Expand Down
10 changes: 9 additions & 1 deletion supabase_functions/_sync/functions_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@


class SyncFunctionsClient:
def __init__(self, url: str, headers: Dict, timeout: int, verify: bool = True):
def __init__(
self,
url: str,
headers: Dict,
timeout: int,
verify: bool = True,
proxy: Optional[str] = None,
):
self.url = url
self.headers = {
"User-Agent": f"supabase-py/functions-py v{__version__}",
Expand All @@ -19,6 +26,7 @@ def __init__(self, url: str, headers: Dict, timeout: int, verify: bool = True):
headers=self.headers,
verify=bool(verify),
timeout=timeout,
proxy=proxy,
follow_redirects=True,
http2=True,
)
Expand Down