Releases: Kludex/starlette
Releases · Kludex/starlette
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.partialasync 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_exceptioninstead offormat_tbinServerErrorMiddleware'sdebugresponses. - Be more lenient with handler arguments when using the
requiresdecorator.
Version 0.13.8
-
Revert
Queue(maxsize=1)fix forBaseHTTPMiddlewaremiddleware classes and streaming responses. -
The
StaticFilesconstructor now allowspathlib.Pathin addition to strings for itsdirectoryargument.
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.