Skip to content

Commit 45b4e38

Browse files
committed
feat: use HTTP2
using HTTP2 & a persistent client seems like good enough to reach a minimal viable level of performance optimization closes #38
1 parent 3d87471 commit 45b4e38

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies = [
1010
"brotli>=1.1.0",
1111
"cql2>=0.3.5",
1212
"fastapi>=0.115.5",
13-
"httpx>=0.28.0",
13+
"httpx[http2]>=0.28.0",
1414
"jinja2>=3.1.4",
1515
"pydantic-settings>=2.6.1",
1616
"pyjwt>=2.10.1",

src/stac_auth_proxy/handlers/reverse_proxy.py

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def __post_init__(self):
2525
self.client = self.client or httpx.AsyncClient(
2626
base_url=self.upstream,
2727
timeout=self.timeout,
28+
http2=True,
2829
)
2930

3031
async def proxy_request(self, request: Request) -> Response:

uv.lock

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

0 commit comments

Comments
 (0)