Hi folks,
Currently, the TestClient is built as a subclass of requests.Session.
What would be thoughts on migrating to HTTPX?
- Is this a good idea at all?
- Should the
TestClient be built around HTTPX, or should it eventually be replaced by HTTPX and its ASGI support?
As of today, there are definitely blockers to a full migration. An important one is that HTTPX doesn't support WebSocket yet (see https://github.com/encode/httpx/issues/304), while TestClient does.
Happy to discuss! cc @tiangolo @gvbgduh @tomchristie
Hi folks,
Currently, the
TestClientis built as a subclass ofrequests.Session.What would be thoughts on migrating to HTTPX?
TestClientbe built around HTTPX, or should it eventually be replaced by HTTPX and its ASGI support?As of today, there are definitely blockers to a full migration. An important one is that HTTPX doesn't support WebSocket yet (see https://github.com/encode/httpx/issues/304), while
TestClientdoes.Happy to discuss! cc @tiangolo @gvbgduh @tomchristie