Replace httpx and httpx-sse with httpx2 (#2972)
Some checks failed
CI / checks (push) Has been cancelled
CI / all-green (push) Has been cancelled

Co-authored-by: Max Isbey <224885523+maxisbey@users.noreply.github.com>
This commit is contained in:
Marcelo Trylesinski 2026-07-14 18:05:08 +02:00 • committed by GitHub
commit 2713b53b12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,7 +12,7 @@ from typing import Any, Literal
import anyio
import anyio.lowlevel
import httpx
import httpx2
import mcp_types as types
import pytest
from inline_snapshot import snapshot
@ -836,9 +836,9 @@ async def test_a_cache_hit_listing_still_mirrors_x_mcp_headers_on_tools_call() -
server = Server("headers", on_list_tools=list_tools, on_call_tool=call_tool)
posts: list[httpx.Request] = []
posts: list[httpx2.Request] = []
async def on_request(request: httpx.Request) -> None:
async def on_request(request: httpx2.Request) -> None:
posts.append(request)
config = CacheConfig(store=InMemoryResponseCacheStore(), partition="p", target_id="svc")