- Sort Score
- Num 10 results
- Language All
Results 971 - 980 of 2,122 for operation (0.06 seconds)
-
docs/ja/docs/tutorial/request-files.md
- 一度 `await myfile.read()` を実行して、もう一度内容を読みたい場合に特に便利です。 - `close()`: ファイルを閉じます。 これらはすべて `async` メソッドなので、`await` する必要があります。 例えば、`async` の *path operation 関数* 内では次のように内容を取得できます: ```Python contents = await myfile.read() ``` 通常の `def` の *path operation 関数* 内にいる場合は、`UploadFile.file` に直接アクセスできます。例えば: ```Python contents = myfile.file.read() ``` /// note | `async` の技術詳細
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 8.7K bytes - Click Count (0) -
docs/es/docs/tutorial/body.md
```JSON { "name": "Foo", "price": 45.2 } ``` ## Decláralo como un parámetro { #declare-it-as-a-parameter } Para añadirlo a tu *path operation*, decláralo de la misma manera que declaraste parámetros de path y query: {* ../../docs_src/body/tutorial001_py310.py hl[16] *} ...y declara su tipo como el modelo que creaste, `Item`. ## Resultados { #results }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 6.9K bytes - Click Count (0) -
docs/es/docs/advanced/response-change-status-code.md
Para esos casos, puedes usar un parámetro `Response`. ## Usa un parámetro `Response` { #use-a-response-parameter } Puedes declarar un parámetro de tipo `Response` en tu *path operation function* (como puedes hacer para cookies y headers). Y luego puedes establecer el `status_code` en ese objeto de response *temporal*. {* ../../docs_src/response_change_status_code/tutorial001_py310.py hl[1,9,12] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 1.6K bytes - Click Count (0) -
docs/fr/docs/tutorial/testing.md
│ ├── main.py │ └── test_main.py ``` Supposons que désormais le fichier `main.py` avec votre application **FastAPI** contienne d’autres **chemins d’accès**. Il a une opération `GET` qui pourrait renvoyer une erreur. Il a une opération `POST` qui pourrait renvoyer plusieurs erreurs. Les deux chemins d’accès requièrent un en-tête `X-Token`. {* ../../docs_src/app_testing/app_b_an_py310/main.py *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 6.5K bytes - Click Count (0) -
docs/uk/docs/how-to/custom-docs-ui-assets.md
Swagger UI впорається з цим «за лаштунками», але йому потрібен цей «redirect» хелпер. /// ### Створіть операцію шляху для перевірки { #create-a-path-operation-to-test-it } Тепер, щоб перевірити, що все працює, створіть *операцію шляху*: {* ../../docs_src/custom_docs_ui/tutorial001_py310.py hl[36:38] *} ### Перевірте { #test-it }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 11.8K bytes - Click Count (0) -
docs/tr/docs/advanced/response-headers.md
# Response Header'ları { #response-headers } ## Bir `Response` parametresi kullanın { #use-a-response-parameter } *Path operation function* içinde (cookie'lerde yapabildiğiniz gibi) tipi `Response` olan bir parametre tanımlayabilirsiniz. Sonra da bu *geçici* response nesnesi üzerinde header'ları ayarlayabilirsiniz. {* ../../docs_src/response_headers/tutorial002_py310.py hl[1, 7:8] *}
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
* to serve the application * to serve the page * the app * the application * the request * the response * the error response * the path operation * the path operation decorator * the path operation function * the body * the request body * the response body * the JSON body * the form body * the file body * the function body * the parameter
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/fr/docs/advanced/stream-data.md
FastAPI transmettra chaque bloc de données à la `StreamingResponse` tel quel ; il n'essaiera pas de le convertir en JSON ni autre chose similaire. ### Fonctions de chemin d'accès non async { #non-async-path-operation-functions } Vous pouvez également utiliser des fonctions `def` classiques (sans `async`), et utiliser `yield` de la même manière. {* ../../docs_src/stream_data/tutorial001_py310.py ln[26:29] hl[27] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:33:45 GMT 2026 - 6.2K bytes - Click Count (0) -
docs/zh-hant/docs/async.md
/// warning 你大概可以跳過這段。 這裡是有關 FastAPI 內部技術細節。 如果你有相當多的技術背景(例如協程、執行緒、阻塞等),並且對 FastAPI 如何處理 `async def` 與常規 `def` 感到好奇,請繼續閱讀。 /// ### 路徑操作函式 { #path-operation-functions } 當你使用 `def` 而不是 `async def` 宣告*路徑操作函式*時,該函式會在外部的執行緒池(threadpool)中執行,然後等待結果,而不是直接呼叫(因為這樣會阻塞伺服器)。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 21.7K bytes - Click Count (0) -
docs/zh/docs/async.md
/// warning | 警告 你可以跳过这里。 这些都是 FastAPI 如何在内部工作的技术细节。 如果你有相当多的技术知识(协程、线程、阻塞等),并且对 FastAPI 如何处理 `async def` 与常规 `def` 感到好奇,请继续。 /// ### 路径操作函数 { #path-operation-functions } 当你使用 `def` 而不是 `async def` 来声明一个*路径操作函数*时,它运行在外部的线程池中并等待其结果,而不是直接调用(因为它会阻塞服务器)。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 21.6K bytes - Click Count (0)