- Sort Score
- Num 10 results
- Language All
Results 7431 - 7440 of 7,804 for RETURN (0.06 seconds)
-
docs_src/handling_errors/tutorial004_py310.py
async def http_exception_handler(request, exc): return PlainTextResponse(str(exc.detail), status_code=exc.status_code) @app.exception_handler(RequestValidationError) async def validation_exception_handler(request, exc: RequestValidationError): message = "Validation errors:" for error in exc.errors(): message += f"\nField: {error['loc']}, Error: {error['msg']}" return PlainTextResponse(message, status_code=400)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 920 bytes - Click Count (0) -
docs/zh-hant/docs/deployment/docker.md
* 建立一個 `main.py` 檔案,內容如下: ```Python from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: str | None = None): return {"item_id": item_id, "q": q} ``` ### Dockerfile { #dockerfile } 現在在同一個專案目錄建立一個 `Dockerfile` 檔案,內容如下: ```{ .dockerfile .annotate }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 24.9K 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) -
okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.kt
| -H 'Content-Type: application/octet-stream' """.trimMargin(), ) } private fun bodyToHex(body: RequestBody): String { val buffer = Buffer() body.writeTo(buffer) return buffer.readByteString().hex() }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 24.6K bytes - Click Count (0) -
docs/tr/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
Ancak gerçek senaryolarda, security uygularken, entegre [Security yardımcı araçlarını (bir sonraki bölüm)](../security/index.md) kullanmak size daha fazla fayda sağlar. /// ## Dependency Hataları ve Return Değerleri { #dependencies-errors-and-return-values } Normalde kullandığınız aynı dependency *function*'larını burada da kullanabilirsiniz. ### Dependency Gereksinimleri { #dependency-requirements }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 3.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CookieTest.kt
} } @Throws(ParseException::class) private fun date(s: String): Date { val format = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ") format.timeZone = UTC return format.parse(s) }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Nov 01 12:18:11 GMT 2025 - 24.4K bytes - Click Count (0) -
tests/test_starlette_urlconvertors.py
@app.get("/int/{param:int}") def int_convertor(param: int = Path()): return {"int": param} @app.get("/float/{param:float}") def float_convertor(param: float = Path()): return {"float": param} @app.get("/path/{param:path}") def path_convertor(param: str = Path()): return {"path": param} @app.get("/query/") def query_convertor(param: str = Query()): return {"query": param} client = TestClient(app)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Nov 27 14:46:06 GMT 2022 - 1.7K bytes - Click Count (0) -
tests/test_strict_content_type_router_level.py
router_default = APIRouter(prefix="/default") @router_lax.post("/items/") async def router_lax_post(data: dict): return data @router_strict.post("/items/") async def router_strict_post(data: dict): return data @router_default.post("/items/") async def router_default_post(data: dict): return data app.include_router(router_lax) app.include_router(router_strict) app.include_router(router_default)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Feb 23 17:45:20 GMT 2026 - 1.7K bytes - Click Count (0) -
docs/uk/docs/advanced/settings.md
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 16.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/CharsTest.java
assertThat(Chars.toArray(list.subList(2, 2))).isEqualTo(new char[] {}); } // `primitives` can't depend on `collect`, so this is what the prod code has to return. @SuppressWarnings("EmptyList") public void testAsListEmpty() { assertThat(Chars.asList(EMPTY)).isSameInstanceAs(Collections.emptyList()); } @J2ktIncompatible
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 01:43:32 GMT 2026 - 26K bytes - Click Count (0)