Added
- Error handler will always run, even if the error happens on a background task #761.
- Add
headers
parameter toHTTPException
#1435. - Internal responses with
405
status code insert anAllow
header, as described by RFC 7231 #1436. - The
content
argument inJSONResponse
is now required #1431. - Add custom URL convertor register #1437.
- Add content disposition type parameter to
FileResponse
#1266. - Add next query param with original request URL in requires decorator #920.
- Add
raw_path
toTestClient
scope #1445. - Add union operators to
MutableHeaders
#1240. - Display missing route details on debug page #1363.
- Change
anyio
required version range to>=3.4.0,<5.0
#1421 and #1460. - Add
typing-extensions>=3.10
requirement - used only on lower versions than Python 3.10 #1475.
Fixed
- Prevent
BaseHTTPMiddleware
from hiding errors ofStreamingResponse
and mounted applications #1459. SessionMiddleware
uses an explicitpath=...
, instead of defaulting to the ASGI 'root_path' #1512.Request.client
is now compliant with the ASGI specifications #1462.- Raise
KeyError
at early stage for missing boundary #1349.