- Sort Score
- Num 10 results
- Language All
Results 7591 - 7600 of 7,804 for RETURN (0.04 seconds)
-
docs/ko/docs/advanced/response-directly.md
# 응답을 직접 반환하기 { #return-a-response-directly } **FastAPI**에서 *경로 처리(path operation)*를 생성할 때, 일반적으로 `dict`, `list`, Pydantic 모델, 데이터베이스 모델 등의 데이터를 반환할 수 있습니다. [응답 모델](../tutorial/response-model.md)을 선언하면 FastAPI는 Pydantic을 사용해 데이터를 JSON으로 직렬화합니다. 응답 모델을 선언하지 않으면, FastAPI는 [JSON 호환 가능 인코더](../tutorial/encoder.md)에 설명된 `jsonable_encoder`를 사용해 데이터를 변환하고 이를 `JSONResponse`에 넣습니다. 또한 `JSONResponse`를 직접 생성해 반환할 수도 있습니다. /// tip | 팁Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 4.7K bytes - Click Count (0) -
docs/zh/docs/advanced/response-directly.md
# 直接返回响应 { #return-a-response-directly } 当你创建一个 **FastAPI** *路径操作* 时,你可以正常返回以下任意一种数据:`dict`,`list`,Pydantic 模型,数据库模型等等。 如果你声明了 [响应模型](../tutorial/response-model.md),FastAPI 会使用它通过 Pydantic 将数据序列化为 JSON。 如果你没有声明响应模型,**FastAPI** 会使用在 [JSON 兼容编码器](../tutorial/encoder.md) 中阐述的 `jsonable_encoder`。 然后,**FastAPI** 会在后台将这些兼容 JSON 的数据(比如字典)放到一个 `JSONResponse` 中,该 `JSONResponse` 会用来发送响应给客户端。 但是你可以在你的 *路径操作* 中直接返回一个 `JSONResponse`。 /// tip | 提示Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 4.2K bytes - Click Count (0) -
docs/zh/docs/tutorial/sql-databases.md
`HeroUpdate` 的字段包括: * `name` * `age` * `secret_name` {* ../../docs_src/sql_databases/tutorial002_an_py310.py ln[7:28] hl[25:28] *} ### 使用 `HeroCreate` 创建并返回 `HeroPublic` { #create-with-herocreate-and-return-a-heropublic } 既然我们有了**多个模型**,我们就可以对使用它们的应用程序部分进行更新。 我们在请求中接收到一个 `HeroCreate` *数据模型*,然后从中创建一个 `Hero` *表模型*。 这个新的*表模型* `Hero` 会包含客户端发送的字段,以及一个由数据库生成的 `id`。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 15.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java
} @Test @DisplayName("Should return null when hash algorithms is null") void testGetHashAlgosNull() { PreauthIntegrityNegotiateContext context = new PreauthIntegrityNegotiateContext(mockConfig, null, new byte[] { 0x01 }); assertNull(context.getHashAlgos()); } @Test @DisplayName("Should return null when salt is null") void testGetSaltNull() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 34K bytes - Click Count (0) -
tests/test_tutorial/test_body_nested_models/test_tutorial009.py
"tutorial009_py310", ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.body_nested_models.{request.param}") client = TestClient(mod.app) return client def test_post_body(client: TestClient): data = {"2": 2.2, "3": 3.3} response = client.post("/index-weights/", json=data) assert response.status_code == 200, response.text
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 4.5K bytes - Click Count (0) -
docs/tr/docs/async.md
```Python hl_lines="1" async def get_burgers(number: int): # Burgerleri yaratmak için bazı asenkron işler yap return burgers ``` ...`def` yerine: ```Python hl_lines="2" # Bu asenkron değildir def get_sequential_burgers(number: int): # Burgerleri yaratmak için bazı sıralı işler yap return burgers ```
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 23.7K bytes - Click Count (0) -
tests/test_openapi_query_parameter_extension.py
"name": "extra_param_2", "in": "query", }, ] }, ) def route_with_extra_query_parameters(standard_query_param: int | None = 50): return {} client = TestClient(app) def test_get_route(): response = client.get("/") assert response.status_code == 200, response.text assert response.json() == {} def test_openapi():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 4.8K bytes - Click Count (0) -
docs/tr/docs/advanced/response-headers.md
`Response` parametresini dependency'lerde de tanımlayıp, onların içinde header (ve cookie) ayarlayabilirsiniz. ## Doğrudan bir `Response` döndürün { #return-a-response-directly } Doğrudan bir `Response` döndürdüğünüzde de header ekleyebilirsiniz.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 2.4K bytes - Click Count (0) -
docs/zh/docs/_llm-test.md
* the expression * the statement * the frontend * the backend * the GitHub discussion * the GitHub issue * the performance * the performance optimization * the return type * the return value * the security * the security scheme * the task * the background task * the task function * the template * the template engine * the type annotation
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 10.7K bytes - Click Count (0) -
docs/de/docs/tutorial/stream-json-lines.md
/// ## JSON Lines mit FastAPI streamen { #stream-json-lines-with-fastapi } Um JSON Lines mit FastAPI zu streamen, können Sie anstelle von `return` in Ihrer *Pfadoperation-Funktion* `yield` verwenden, um jedes Element der Reihe nach zu erzeugen. {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[1:24] hl[24] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:48:21 GMT 2026 - 4.9K bytes - Click Count (0)