fastapi/docs/en/docs/tutorial/dependencies
Sebastián Ramírez a4aa79e0b4
Add support for raising exceptions (including `HTTPException`) in dependencies with `yield` in the exit code, do not support them in background tasks (#10831)
* ♻️ Refactor dependency AsyncExitStack logic, exit dependencies after creating the response, before sending it

*  Update tests for dependencies exit, check they are finished before the response is sent

* 🔥 Remove ExitAsyncStackMiddleware as it's no longer needed

* 📝 Update docs for dependencies with yield

* 📝 Update release notes

* 📝 Add source examples for new dependencies with yield raising

*  Add tests for new dependencies raising after yield

* 📝 Update release notes
2023-12-25 18:57:35 +01:00
..
classes-as-dependencies.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
dependencies-in-path-operation-decorators.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
dependencies-with-yield.md Add support for raising exceptions (including `HTTPException`) in dependencies with `yield` in the exit code, do not support them in background tasks (#10831) 2023-12-25 18:57:35 +01:00
global-dependencies.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
index.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
sub-dependencies.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00