Replace httpx and httpx-sse with httpx2 (#2972)
Co-authored-by: Max Isbey <224885523+maxisbey@users.noreply.github.com>
This commit is contained in:
parent
1216c53693
commit
2713b53b12
1 changed files with 1029 additions and 948 deletions
|
|
@ -1,6 +1,6 @@
|
|||
"""Tests for httpx utility functions."""
|
||||
"""Tests for httpx2 utility functions."""
|
||||
|
||||
import httpx
|
||||
import httpx2
|
||||
|
||||
from mcp.shared._httpx_utils import create_mcp_http_client
|
||||
|
||||
|
|
@ -16,7 +16,7 @@ def test_default_settings():
|
|||
def test_custom_parameters():
|
||||
"""Test custom headers and timeout are set correctly."""
|
||||
headers = {"Authorization": "Bearer token"}
|
||||
timeout = httpx.Timeout(60.0)
|
||||
timeout = httpx2.Timeout(60.0)
|
||||
|
||||
client = create_mcp_http_client(headers, timeout)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue