Skip to content

Glossary: Building APIs with FastAPI

httpx

Also written: httpx2

A Python HTTP library with an interface much like `requests`, supporting both sync and async use. It can call an API from Python, for example with `json=` to send a JSON body, and FastAPI's `TestClient` works like it.

Where the book teaches it

Related terms

TestClientcurl