- Sort Score
- Num 10 results
- Language All
Results 1061 - 1070 of 1,479 for item5 (0.04 seconds)
-
tests/test_stream_cancellation.py
@app.get("/stream-raw", response_class=StreamingResponse) async def stream_raw() -> AsyncIterable[str]: """Async generator with no internal await - would hang without checkpoint.""" i = 0 while True: yield f"item {i}\n" i += 1 @app.get("/stream-jsonl") async def stream_jsonl() -> AsyncIterable[int]: """JSONL async generator with no internal await.""" i = 0 while True: yield i
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 27 18:56:47 GMT 2026 - 2.7K bytes - Click Count (0) -
docs/uk/docs/tutorial/first-steps.md
#### Шлях { #path } «Шлях» тут означає останню частину URL, починаючи з першого `/`. Отже, у такому URL, як: ``` https://example.com/items/foo ``` ...шлях буде: ``` /items/foo ``` /// info «Шлях» також зазвичай називають «ендпоінтом» або «маршрутом». ///Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 18.7K bytes - Click Count (0) -
docs/zh/docs/tutorial/query-param-models.md
{* ../../docs_src/query_param_models/tutorial002_an_py310.py hl[10] *} 假设有一个客户端尝试在**查询参数**中发送一些**额外的**数据,它将会收到一个**错误**响应。 例如,如果客户端尝试发送一个值为 `plumbus` 的 `tool` 查询参数,如: ```http https://example.com/items/?limit=10&tool=plumbus ``` 他们将收到一个**错误**响应,告诉他们查询参数 `tool` 是不允许的: ```json { "detail": [ { "type": "extra_forbidden", "loc": ["query", "tool"],Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:39:41 GMT 2026 - 2.1K bytes - Click Count (0) -
docs/en/docs/advanced/stream-data.md
/// ### `yield from` { #yield-from } When you are iterating over something, like a file-like object, and then you are doing `yield` for each item, you could also use `yield from` to yield each item directly and skip the `for` loop. This is not particular to FastAPI, it's just Python, but it's a nice trick to know. 😎Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 5.4K bytes - Click Count (0) -
docs/ko/docs/tutorial/server-sent-events.md
`EventSourceResponse`는 `fastapi.sse`에서 임포트합니다: {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[4,22] *} 각 `yield`된 항목은 JSON으로 인코딩되어 SSE 이벤트의 `data:` 필드로 전송됩니다. 반환 타입을 `AsyncIterable[Item]`으로 선언하면 FastAPI가 이를 사용해 데이터를 Pydantic으로 **검증**, **문서화**, **직렬화**합니다. {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[10:12,23] *} /// tip | 팁Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:56:39 GMT 2026 - 5.3K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/log/AdminLogAction.java
public static String sanitizeFilename(final String filename) { return filename.replaceAll("\\s", "").replace("\\", "/").replace("..", "").replaceAll("/+", "/"); } /** * Gets a list of log file items for display in the admin interface. * * @return list of maps containing log file information (id, name, lastModified, size) */ public static List<Map<String, Object>> getLogFileItems() {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Jan 23 23:57:26 GMT 2026 - 5.8K bytes - Click Count (0) -
src/main/webapp/WEB-INF/view/admin/fileconfig/admin_fileconfig.jsp
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Mon Feb 23 08:03:44 GMT 2026 - 8.9K bytes - Click Count (0) -
docs/zh/docs/tutorial/server-sent-events.md
从 `fastapi.sse` 导入 `EventSourceResponse`: {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[4,22] *} 每个被 yield 的项会被编码为 JSON,并放入 SSE 事件的 `data:` 字段发送。 如果你将返回类型声明为 `AsyncIterable[Item]`,FastAPI 将使用它通过 Pydantic对数据进行**校验**、**文档化**和**序列化**。 {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[10:12,23] *} /// tip | 提示 由于 Pydantic 会在**Rust** 端序列化它,相比未声明返回类型,你将获得更高的**性能**。 ///Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:29:48 GMT 2026 - 4.6K bytes - Click Count (0) -
docs/es/docs/tutorial/first-steps.md
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 13.9K bytes - Click Count (0) -
docs/fr/docs/tutorial/first-steps.md
#### Chemin { #path } « Chemin » fait ici référence à la dernière partie de l’URL à partir du premier `/`. Donc, dans une URL telle que : ``` https://example.com/items/foo ``` ... le chemin serait : ``` /items/foo ``` /// info Un « chemin » est aussi couramment appelé « endpoint » ou « route ». ///Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 15.1K bytes - Click Count (0)