Skip to content

Commit 0ea293d

Browse files
Enable HTTP2 (#462)
1 parent ce704b3 commit 0ea293d

File tree

4 files changed

+42
-2
lines changed

4 files changed

+42
-2
lines changed

poetry.lock

+39-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

postgrest/_async/client.py

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def create_session(
5353
timeout=timeout,
5454
verify=verify,
5555
follow_redirects=True,
56+
http2=True,
5657
)
5758

5859
async def __aenter__(self) -> AsyncPostgrestClient:

postgrest/_sync/client.py

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def create_session(
5353
timeout=timeout,
5454
verify=verify,
5555
follow_redirects=True,
56+
http2=True,
5657
)
5758

5859
def __enter__(self) -> SyncPostgrestClient:

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ packages = [
1919

2020
[tool.poetry.dependencies]
2121
python = "^3.8"
22-
httpx = ">=0.24,<0.28"
22+
httpx = {version = ">=0.24,<0.28", extras = ["http2"]}
2323
deprecation = "^2.1.0"
2424
pydantic = ">=1.9,<3.0"
2525
strenum = "^0.4.9"

0 commit comments

Comments
 (0)