Skip to content

Version 0.21.0

Compare
Choose a tag to compare
@Kludex Kludex released this 26 Sep 17:09
· 294 commits to master since this release
0b8a775

This release replaces the underlying HTTP client used on the TestClient (requests ➑️ httpx), and as those clients differ a bit on their API, your test suite will likely break. To make the migration smoother, you can use the bump-testclient tool.

Changed

  • Replace requests with httpx in TestClient #1376.

Added

  • Add WebSocketException and support for WebSocket exception handlers #1263.
  • Add middleware parameter to Mount class #1649.
  • Officially support Python 3.11 #1863.
  • Implement __repr__ for route classes #1864.

Fixed

  • Fix bug on which BackgroundTasks were cancelled when using BaseHTTPMiddleware and client disconnected #1715.