fastapi/docs/en/docs/tutorial
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
..
dependencies 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
security ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
background-tasks.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
bigger-applications.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
body-fields.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
body-multiple-params.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
body-nested-models.md ✏️ Fix typos and rewordings in `docs/en/docs/tutorial/body-nested-models.md` (#10468) 2023-10-20 12:58:03 +04:00
body-updates.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
body.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
cookie-params.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
cors.md ✏️ Clarify docs on CORS (#5627) 2022-11-13 21:28:37 +01:00
debugging.md ✏ Rewording in `docs/en/docs/tutorial/debugging.md` (#9581) 2023-06-22 17:04:16 +00:00
encoder.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
extra-data-types.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
extra-models.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
first-steps.md Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
handling-errors.md ✏️ Fix typo in `docs/en/docs/tutorial/handling-errors.md` (#10170) 2023-09-02 17:43:16 +02:00
header-params.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
index.md 🔨 Add MkDocs hook that renames sections based on the first index file (#9737) 2023-06-24 16:47:15 +02:00
metadata.md ✏️ Fix link to SPDX license identifier in `docs/en/docs/tutorial/metadata.md` (#10433) 2023-10-20 13:19:31 +04:00
middleware.md 🎨 Simplify docs hl_lines ranges and standardize 2 spaces between each range (#1863) 2020-08-29 16:02:58 +02:00
path-operation-configuration.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
path-params-numeric-validations.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
path-params.md 📝 Update example validation error from Pydantic v1 to match Pydantic v2 in `docs/en/docs/tutorial/path-params.md` (#10043) 2023-10-20 13:08:42 +04:00
query-params-str-validations.md 👷 Adopt Ruff format (#10517) 2023-10-25 00:26:06 +04:00
query-params.md 📝 Update example validation error from Pydantic v1 to match Pydantic v2 in `docs/en/docs/tutorial/path-params.md` (#10043) 2023-10-20 13:08:42 +04:00
request-files.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
request-forms-and-files.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
request-forms.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
response-model.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
response-status-code.md 🎨 Simplify docs hl_lines ranges and standardize 2 spaces between each range (#1863) 2020-08-29 16:02:58 +02:00
schema-extra-example.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
sql-databases.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00
static-files.md Add support for Trio via AnyIO (#3372) 2021-10-06 17:32:11 +02:00
testing.md ⬆️ Drop support for Python 3.7, require Python 3.8 or above (#10442) 2023-10-17 09:59:11 +04:00