- Sort Score
- Num 10 results
- Language All
Results 671 - 680 of 1,177 for item4 (0.02 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs/ja/docs/advanced/additional-status-codes.md
## 追加のステータスコード { #additional-status-codes_1 } メインのステータスコードとは別に追加のステータスコードを返したい場合は、`JSONResponse` のような `Response` を直接返し、追加のステータスコードを直接設定できます。 たとえば、item を更新でき、成功時に HTTP ステータスコード 200 "OK" を返す *path operation* を作りたいとします。 しかし、新しい item も受け付けたいとします。そして、item が以前存在しなかった場合には作成し、HTTP ステータスコード 201「Created」を返します。 これを実現するには、`JSONResponse` をインポートし、望む `status_code` を設定して、そこで内容を直接返します。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 2.4K bytes - Click Count (0) -
docs/fr/docs/editor-support.md
# Prise en charge des éditeurs { #editor-support } L’extension officielle [Extension FastAPI](https://marketplace.visualstudio.com/items?itemName=FastAPILabs.fastapi-vscode) améliore votre flux de développement FastAPI grâce à la découverte des chemins d'accès, à la navigation, ainsi qu’au déploiement sur FastAPI Cloud et à la diffusion en direct des journaux.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:33:45 GMT 2026 - 2.9K bytes - Click Count (0) -
lib/hg/goreposum.py
""" h = hashlib.sha256() peer = hg.peer(ui, {}, url) for name, revs in peer.branchmap().items(): h.update(name) for r in revs: h.update(b' ') h.update(r) h.update(b'\n') if (b'bookmarks' in peer.listkeys(b'namespaces')): for name, rev in peer.listkeys(b'bookmarks').items(): h.update(name) h.update(b'=') h.update(rev) h.update(b'\n')
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Tue Nov 11 15:21:02 GMT 2025 - 2.4K bytes - Click Count (0) -
docs_src/dependencies/tutorial005_py310.py
return q def query_or_cookie_extractor( q: str = Depends(query_extractor), last_query: str | None = Cookie(default=None) ): if not q: return last_query return q @app.get("/items/") async def read_query(query_or_default: str = Depends(query_or_cookie_extractor)):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 443 bytes - Click Count (0) -
docs/zh/docs/advanced/behind-a-proxy.md
</div> ### 使用 HTTPS 的重定向 { #redirects-with-https } 例如,假设你定义了一个*路径操作* `/items/`: {* ../../docs_src/behind_a_proxy/tutorial001_01_py310.py hl[6] *} 如果客户端尝试访问 `/items`,默认会被重定向到 `/items/`。 但在设置 *CLI 选项* `--forwarded-allow-ips` 之前,它可能会重定向到 `http://localhost:8000/items/`。 而你的应用可能托管在 `https://mysuperapp.com`,重定向应当是 `https://mysuperapp.com/items/`。 通过设置 `--proxy-headers`,FastAPI 现在就可以重定向到正确的位置。😎 ```Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 15.1K bytes - Click Count (0) -
docs_src/query_params/tutorial002_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 219 bytes - Click Count (0) -
docs_src/query_params_str_validations/tutorial012_an_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 227 bytes - Click Count (0) -
docs_src/query_params/tutorial001_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 250 bytes - Click Count (0) -
docs_src/query_param_models/tutorial001_an_py310.py
class FilterParams(BaseModel): limit: int = Field(100, gt=0, le=100) offset: int = Field(0, ge=0) order_by: Literal["created_at", "updated_at"] = "created_at" tags: list[str] = [] @app.get("/items/") async def read_items(filter_query: Annotated[FilterParams, Query()]):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Sep 17 18:54:10 GMT 2024 - 443 bytes - Click Count (0) -
docs_src/dependencies/tutorial005_an_py310.py
def query_or_cookie_extractor( q: Annotated[str, Depends(query_extractor)], last_query: Annotated[str | None, Cookie()] = None, ): if not q: return last_query return q @app.get("/items/") async def read_query( query_or_default: Annotated[str, Depends(query_or_cookie_extractor)], ):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 510 bytes - Click Count (0)