- Sort Score
- Num 10 results
- Language All
Results 431 - 440 of 1,089 for itens (0.28 seconds)
-
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/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/path_operation_advanced_configuration/tutorial002_py310.py
from fastapi import FastAPI from fastapi.routing import APIRoute app = FastAPI() @app.get("/items/") async def read_items(): return [{"item_id": "Foo"}] def use_route_names_as_operation_ids(app: FastAPI) -> None: """ Simplify operation IDs so that generated API clients have simpler function names. Should be called only after all routes have been added. """ for route in app.routes:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 572 bytes - Click Count (0) -
docs_src/path_operation_advanced_configuration/tutorial006_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 1K bytes - Click Count (0) -
docs_src/body/tutorial003_py310.py
from pydantic import BaseModel class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None app = FastAPI() @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 330 bytes - Click Count (0) -
docs_src/path_operation_configuration/tutorial001_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 04 12:07:26 GMT 2026 - 350 bytes - Click Count (0) -
docs_src/header_param_models/tutorial001_an_py310.py
app = FastAPI() class CommonHeaders(BaseModel): host: str save_data: bool if_modified_since: str | None = None traceparent: str | None = None x_tag: list[str] = [] @app.get("/items/") async def read_items(headers: Annotated[CommonHeaders, Header()]):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Sep 17 18:54:10 GMT 2024 - 392 bytes - Click Count (0) -
docs_src/body_fields/tutorial001_an_py310.py
default=None, title="The description of the item", max_length=300 ) price: float = Field(gt=0, description="The price must be greater than zero") tax: float | None = None @app.put("/items/{item_id}") async def update_item(item_id: int, item: Annotated[Item, Body(embed=True)]): results = {"item_id": item_id, "item": item}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 563 bytes - Click Count (0) -
docs_src/dependencies/tutorial008c_py310.py
class InternalError(Exception): pass def get_username(): try: yield "Rick" except InternalError: print("Oops, we didn't raise again, Britney 😱") @app.get("/items/{item_id}") def get_item(item_id: str, username: str = Depends(get_username)): if item_id == "portal-gun": raise InternalError( f"The portal gun is too dangerous to be owned by {username}" )
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 660 bytes - Click Count (0) -
docs/en/docs/advanced/generate-clients.md
## FastAPI App with Tags { #fastapi-app-with-tags } In many cases, your FastAPI app will be bigger, and you will probably use tags to separate different groups of *path operations*. For example, you could have a section for **items** and another section for **users**, and they could be separated by tags: {* ../../docs_src/generate_clients/tutorial002_py310.py hl[21,26,34] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 9.7K bytes - Click Count (1)