0.47.0
📦 starletteView on GitHub →
✨ 2 features🐛 1 fixes🔧 3 symbols
Summary
Starlette 0.47.0 adds ASGI pathsend support and a `partitioned` flag for cookies, updates the `methods` parameter type, and makes `ExceptionMiddleware.http_exception` async.
Migration Steps
- Update any code that passed a `list[str]` to the `methods` parameter to accept any `Collection[str]` (e.g., pass a set or tuple).
- If you imported symbols directly from `typing`, no action needed as imports were updated internally.
✨ New Features
- Add support for ASGI `pathsend` extension.
- Add `partitioned` attribute to `Response.set_cookie`.
🐛 Bug Fixes
- Mark `ExceptionMiddleware.http_exception` as async to prevent thread creation.
🔧 Affected Symbols
Response.set_cookieExceptionMiddleware.http_exceptionmethods parameter (router)