Releases: encode/starlette
Releases · encode/starlette
Version 0.14.2
Version 0.14.1
Removed
UJSONResponse
was removed (this change was intended to be included in 0.14.0). Please see the documentation for how to implement responses using custom JSON serialization - #1074.
Version 0.14.0
Added
- Starlette now officially supports Python3.9.
- In
StreamingResponse
, allow custom async iterator such as objects from classes implementing__aiter__
. - Allow usage of
functools.partial
async handlers in Python versions 3.6 and 3.7. - Add 418 I'm A Teapot status code.
Changed
- Create tasks from handler coroutines before sending them to
asyncio.wait
. - Use
format_exception
instead offormat_tb
inServerErrorMiddleware
'sdebug
responses. - Be more lenient with handler arguments when using the
requires
decorator.
Version 0.13.8
-
Revert
Queue(maxsize=1)
fix forBaseHTTPMiddleware
middleware classes and streaming responses. -
The
StaticFiles
constructor now allowspathlib.Path
in addition to strings for itsdirectory
argument.
Version 0.13.7
- Fix high memory usage when using BaseHTTPMiddleware middleware classes and streaming responses.
Version 0.13.6
- Fix 404 errors with
StaticFiles
.
Version 0.13.5
0.13.5
- Add support for
Starlette(lifespan=...)
functions. - More robust path-traversal check in StaticFiles app.
- Fix WSGI PATH_INFO encoding.
- RedirectResponse now accepts optional background parameter
- Allow path routes to contain regex meta characters
- Treat ASGI HTTP 'body' as an optional key.
- Don't use thread pooling for writing to in-memory upload files.