- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for _exit (0.13 sec)
-
docs/em/docs/tutorial/dependencies/dependencies-with-yield.md
๐ฅ ๐ โถ๏ธ โฎ๏ธ **FastAPI** ๐ ๐ช ๐ ๐ถ โซ๏ธ ๐. ๐, ๐ ๐ช โ ๐ ๐จโ๐ผ <a href="https://docs.python.org/3/reference/datamodel.html#context-managers" class="external-link" target="_blank">๐ ๐ โฎ๏ธ 2๏ธโฃ ๐ฉโ๐ฌ: `__enter__()` & `__exit__()`</a>. ๐ ๐ช โ๏ธ ๐ซ ๐ **FastAPI** ๐ โฎ๏ธ `yield` โ๏ธ `with` โ๏ธ `async with` ๐ ๐ ๐ ๐ข: ```Python hl_lines="1-9 13" {!../../../docs_src/dependencies/tutorial010.py!} ``` !!! tip
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.6K bytes - Viewed (0) -
docs/en/docs/tutorial/middleware.md
* It can do something to that **response** or run any needed code. * Then it returns the **response**. !!! note "Technical Details" If you have dependencies with `yield`, the exit code will run *after* the middleware. If there were any background tasks (documented later), they will run *after* all the middleware. ## Create a middleware
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 16:31:18 GMT 2024 - 2.9K bytes - Viewed (0) -
docs/de/docs/tutorial/middleware.md
* Sie kann etwas mit dieser **Response** tun oder beliebigen Code ausfรผhren. * Dann gibt sie die **Response** zurรผck. !!! note "Technische Details" Wenn Sie Abhรคngigkeiten mit `yield` haben, wird der Exit-Code *nach* der Middleware ausgefรผhrt. Wenn es Hintergrundaufgaben gab (spรคter dokumentiert), werden sie *nach* allen Middlewares ausgefรผhrt. ## Erstellung einer Middleware
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Jan 23 11:26:59 GMT 2024 - 3.4K bytes - Viewed (0) -
fastapi/concurrency.py
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Dec 25 17:57:35 GMT 2023 - 1.4K bytes - Viewed (0) -
docs/ko/docs/tutorial/middleware.md
* **์์ฒญ**์ ์์ฉ ํ๋ก๊ทธ๋จ์ *๊ฒฝ๋ก ์๋*์ผ๋ก ์ ๋ฌํ์ฌ ์ฒ๋ฆฌํฉ๋๋ค. * ์ ํ๋ฆฌ์ผ์ด์ ์ *๊ฒฝ๋ก ์์ *์์ ์์ฑํ **์๋ต**๋ฅผ ๋ฐ์ต๋๋ค. * **์๋ต** ๋๋ ๋ค๋ฅธ ํ์ํ ์ฝ๋๋ฅผ ์คํ์ํค๋ ๋์์ ํ ์ ์์ต๋๋ค. * **์๋ต**๋ฅผ ๋ฐํํฉ๋๋ค. !!! note "๊ธฐ์ ์ธ๋ถ์ฌํญ" ๋ง์ฝ `yield`๋ฅผ ์ฌ์ฉํ ์์กด์ฑ์ ๊ฐ์ง๊ณ ์๋ค๋ฉด, ๋ฏธ๋ค์จ์ด๊ฐ ์คํ๋๊ณ ๋ ํ์ exit์ด ์คํ๋ฉ๋๋ค. ๋ง์ฝ (๋์ค์ ๋ฌธ์์์ ๋ค๋ฃฐ) ๋ฐฑ๊ทธ๋ผ์ด๋ ์์ ์ด ์๋ค๋ฉด, ๋ชจ๋ ๋ฏธ๋ค์จ์ด๊ฐ ์คํ๋๊ณ *๋ ํ์* ์คํ๋ฉ๋๋ค. ## ๋ฏธ๋ค์จ์ด ๋ง๋ค๊ธฐ ๋ฏธ๋ค์จ์ด๋ฅผ ์์ฑํ๊ธฐ ์ํด์ ํจ์ ์๋จ์ `@app.middleware("http")` ๋ฐ์ฝ๋ ์ดํฐ๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค. ๋ฏธ๋ค์จ์ด ํจ์๋ ๋ค์ ํญ๋ชฉ๋ค์ ๋ฐ์ต๋๋ค: * `request`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Jan 31 14:35:27 GMT 2024 - 3.4K bytes - Viewed (0) -
docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md
!!! note "ๆ่ก่ฉณ็ดฐ" ไปฅไธใจไธ็ทใซไฝฟ็จใงใใ้ขๆฐใชใไฝใงใๆๅนใงใ: * <a href="https://docs.python.org/3/library/contextlib.html#contextlib.contextmanager" class="external-link" target="_blank">`@contextlib.contextmanager`</a>ใพใใฏ
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 12.5K bytes - Viewed (0) -
.github/actions/notify-translations/app/main.py
logging.info(f"PR #{pr.number} has labels: {label_strs}") if not langs or lang_all_label not in label_strs: logging.info(f"PR #{pr.number} doesn't seem to be a translation PR, skipping") sys.exit(0) # Generate translation map, lang ID to discussion discussions = get_graphql_translation_discussions(settings=settings) lang_to_discussion_map: Dict[str, AllDiscussionsDiscussionNode] = {}
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Sep 27 23:01:46 GMT 2023 - 12.4K bytes - Viewed (0) -
.github/actions/people/app/main.py
if ( people_old_content == new_people_content and github_sponsors_old_content == new_github_sponsors_content ): logging.info("The FastAPI People data hasn't changed, finishing.") sys.exit(0) people_path.write_text(new_people_content, encoding="utf-8") github_sponsors_path.write_text(new_github_sponsors_content, encoding="utf-8") logging.info("Setting up GitHub Actions git user")
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 17:38:21 GMT 2024 - 19.2K bytes - Viewed (1) -
docs/en/docs/release-notes.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri May 03 23:25:42 GMT 2024 - 388.1K bytes - Viewed (1) -
fastapi/dependencies/utils.py
background_tasks=background_tasks, response=response, dependency_overrides_provider=dependency_overrides_provider, dependency_cache=dependency_cache, async_exit_stack=async_exit_stack, ) ( sub_values, sub_errors, background_tasks, _, # the subdependency returns the same response we have
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 02:52:56 GMT 2024 - 29.5K bytes - Viewed (0)