- Sort Score
- Num 10 results
- Language All
Results 6211 - 6220 of 6,282 for RETURN (0.07 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs/ja/docs/advanced/response-headers.md
**FastAPI** はその*一時的*なレスポンスからヘッダー(Cookie やステータスコードも含む)を取り出し、`response_model` によってフィルタされた返却値を含む最終的なレスポンスに反映します。 また、依存関係の中で `Response` パラメータを宣言し、その中でヘッダー(や Cookie)を設定することもできます。 ## `Response` を直接返す { #return-a-response-directly } `Response` を直接返す場合にもヘッダーを追加できます。 [Response を直接返す](response-directly.md) で説明したようにレスポンスを作成し、ヘッダーを追加のパラメータとして渡します: {* ../../docs_src/response_headers/tutorial001_py310.py hl[10:12] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 2.7K bytes - Click Count (0) -
docs/de/docs/advanced/security/http-basic-auth.md
So ist Ihr Anwendungscode, dank der Verwendung von `secrets.compare_digest()`, vor dieser ganzen Klasse von Sicherheitsangriffen geschützt. ### Den Error zurückgeben { #return-the-error }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 6.1K bytes - Click Count (0) -
docs/uk/docs/tutorial/server-sent-events.md
Оскільки в цьому випадку функція не async, коректним типом повернення буде `Iterable[Item]`: {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[28:31] hl[29] *} ### Без типу повернення { #no-return-type } Можна також опустити тип повернення. FastAPI використає [`jsonable_encoder`](./encoder.md), щоб конвертувати дані і надіслати їх. {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[34:37] hl[35] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:25:54 GMT 2026 - 7.1K bytes - Click Count (0) -
docs/pt/docs/advanced/custom-response.md
Neste caso, o cabeçalho HTTP `Content-Type` será definido como `text/html`. E será documentado como tal no OpenAPI. /// ### Retornando uma `Response` { #return-a-response } Como visto em [Retornando uma Resposta Diretamente](response-directly.md), você também pode sobrescrever a resposta diretamente na sua *operação de rota*, ao retornar ela.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 12K bytes - Click Count (0) -
docs/zh-hant/docs/alternatives.md
用法非常簡單。例如,發出一個 `GET` 請求,你會寫: ```Python response = requests.get("http://example.com/some/url") ``` 相對地,FastAPI 的 API 路徑操作(path operation)可能像這樣: ```Python hl_lines="1" @app.get("/some/url") def read_url(): return {"message": "Hello World"} ``` 看看 `requests.get(...)` 與 `@app.get(...)` 的相似之處。 /// check | 啟發 **FastAPI** * 擁有簡單直觀的 API。 * 直接使用 HTTP 方法名稱(操作),以直接、直觀的方式表達。 * 具備合理的預設值,同時提供強大的自訂能力。 ///
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 20K bytes - Click Count (0) -
scan.go
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sun May 25 07:40:40 GMT 2025 - 10.4K bytes - Click Count (0) -
tests/test_tutorial/test_body/test_tutorial001.py
], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.body.{request.param}") client = TestClient(mod.app) return client def test_body_float(client: TestClient): response = client.post("/items/", json={"name": "Foo", "price": 50.5}) assert response.status_code == 200 assert response.json() == {
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Feb 23 17:45:20 GMT 2026 - 11.1K bytes - Click Count (0) -
docs/de/docs/tutorial/dependencies/dependencies-with-yield.md
Verwenden Sie dazu `yield` statt `return` und schreiben Sie die zusätzlichen Schritte / den zusätzlichen Code danach. /// tip | Tipp Stellen Sie sicher, dass Sie `yield` nur einmal pro Abhängigkeit verwenden. /// /// note | Technische Details
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 14.4K bytes - Click Count (0) -
docs/ko/docs/_llm-test.md
* exception * raise하다 * expression * statement * frontend * backend * GitHub discussion * GitHub issue * performance * performance optimization * return type * return value * security * security scheme * task * background task * task function * template * template engine * type annotation * type hint * server worker
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 11.7K bytes - Click Count (0) -
docs/ja/docs/advanced/custom-response.md
/// info | 情報 パラメータ `response_class` は、レスポンスの「メディアタイプ」を定義するためにも使用されます。 この場合、HTTPヘッダー `Content-Type` には `text/html` が設定されます。 そして、OpenAPIにもそのようにドキュメント化されます。 /// ### `Response` を返す { #return-a-response } [レスポンスを直接返す](response-directly.md)で見たように、*path operation* の中でレスポンスを直接返して上書きすることもできます。 上記と同じ例で、`HTMLResponse` を返すと次のようになります: {* ../../docs_src/custom_response/tutorial003_py310.py hl[2,7,19] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 13.5K bytes - Click Count (0)