Skip to content

Commit dbe0c73

Browse files
Enable HTTP2 (#115)
1 parent 3850c82 commit dbe0c73

File tree

4 files changed

+42
-2
lines changed

4 files changed

+42
-2
lines changed

poetry.lock

Lines changed: 39 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repository = "https://github.com/supabase-community/functions-py"
1212

1313
[tool.poetry.dependencies]
1414
python = "^3.8"
15-
httpx = ">=0.24,<0.28"
15+
httpx = {version = ">=0.24,<0.28", extras = ["http2"]}
1616

1717
[tool.poetry.group.dev.dependencies]
1818
python-semantic-release = ">=8.1.1,<10.0.0"

supabase_functions/_async/functions_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def __init__(self, url: str, headers: Dict, verify: bool = True):
1818
headers=self.headers,
1919
verify=bool(verify),
2020
follow_redirects=True,
21+
http2=True,
2122
)
2223

2324
async def _request(

supabase_functions/_sync/functions_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def __init__(self, url: str, headers: Dict, verify: bool = True):
1818
headers=self.headers,
1919
verify=bool(verify),
2020
follow_redirects=True,
21+
http2=True,
2122
)
2223

2324
def _request(

0 commit comments

Comments
 (0)