- Sort Score
- Result 10 results
- Languages All
Results 821 - 830 of 1,178 for strs (0.02 sec)
-
cmd/generic-handlers_contrib.go
* limitations under the License. */ package cmd import ( "net/http" "strings" ) // guessIsLoginSTSReq - returns true if incoming request is Login STS user func guessIsLoginSTSReq(req *http.Request) bool { if req == nil { return false } return strings.HasPrefix(req.URL.Path, loginPathPrefix) || (req.Method == http.MethodPost && req.URL.Path == SlashSeparator &&
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Apr 30 15:50:39 UTC 2021 - 995 bytes - Viewed (0) -
docs/ko/docs/index.md
from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str price: float is_offer: Union[bool, None] = None @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None): return {"item_id": item_id, "q": q} @app.put("/items/{item_id}")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 19.7K bytes - Viewed (0) -
docs_src/python_types/tutorial008b_py39.py
from typing import Union def process_item(item: Union[int, str]):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 84 bytes - Viewed (0) -
docs_src/app_testing/tutorial004_py39.py
items["bar"] = {"name": "Tenders"} yield # clean up items items.clear() app = FastAPI(lifespan=lifespan) @app.get("/items/{item_id}") async def read_items(item_id: str): return items[item_id] def test_read_items(): # Before the lifespan starts, "items" is still empty assert items == {} with TestClient(app) as client:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1.2K bytes - Viewed (0) -
docs/ja/docs/index.md
from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str price: float is_offer: bool = None @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: str = None): return {"item_id": item_id, "q": q} @app.put("/items/{item_id}")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 21.3K bytes - Viewed (0) -
tests/test_tutorial/test_websockets/test_tutorial003.py
return mod.html @pytest.fixture(name="client") def get_client(mod: ModuleType): client = TestClient(mod.app) return client def test_get(client: TestClient, html: str): response = client.get("/") assert response.text == html def test_websocket_handle_disconnection(client: TestClient): with ( client.websocket_connect("/ws/1234") as connection,
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 1.3K bytes - Viewed (0) -
docs_src/python_types/tutorial008_py39.py
def process_items(prices: dict[str, float]): for item_name, item_price in prices.items(): print(item_name)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Jan 16 14:44:08 UTC 2022 - 145 bytes - Viewed (0) -
docs_src/python_types/tutorial012_py39.py
from typing import Optional from pydantic import BaseModel class User(BaseModel): name: str
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 122 bytes - Viewed (0) -
docs_src/path_params/tutorial004_py39.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 156 bytes - Viewed (0) -
docs/en/docs/tutorial/body-updates.md
You can use the `jsonable_encoder` to convert the input data to data that can be stored as JSON (e.g. with a NoSQL database). For example, converting `datetime` to `str`. {* ../../docs_src/body_updates/tutorial001_py310.py hl[28:33] *} `PUT` is used to receive data that should replace the existing data. ### Warning about replacing { #warning-about-replacing }
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 4.1K bytes - Viewed (0)