Skip to content

Commit 68dedc8

Browse files
committed
enable http2 by default for faster concurrent api requests
1 parent 1852839 commit 68dedc8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/bubble_data_api_client/http_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def httpx_client_factory(
2222
"Authorization": f"Bearer {api_key}",
2323
"User-Agent": user_agent,
2424
},
25+
http2=True,
2526
transport=httpx.AsyncHTTPTransport(retries=retries),
2627
timeout=httpx.Timeout(timeout),
2728
)

0 commit comments

Comments
 (0)