Skip to content

Commit

Permalink
Enable HTTP2 (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
juancarlospaco committed Jul 3, 2024
1 parent ce704b3 commit 0ea293d
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
40 changes: 39 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions postgrest/_async/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def create_session(
timeout=timeout,
verify=verify,
follow_redirects=True,
http2=True,
)

async def __aenter__(self) -> AsyncPostgrestClient:
Expand Down
1 change: 1 addition & 0 deletions postgrest/_sync/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def create_session(
timeout=timeout,
verify=verify,
follow_redirects=True,
http2=True,
)

def __enter__(self) -> SyncPostgrestClient:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ packages = [

[tool.poetry.dependencies]
python = "^3.8"
httpx = ">=0.24,<0.28"
httpx = {version = ">=0.24,<0.28", extras = ["http2"]}
deprecation = "^2.1.0"
pydantic = ">=1.9,<3.0"
strenum = "^0.4.9"
Expand Down

0 comments on commit 0ea293d

Please sign in to comment.