Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 7721 - 7730 of 7,804 for RETURN (0.15 seconds)

  1. 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)
  2. docs/fr/docs/advanced/security/http-basic-auth.md

    Ainsi, en utilisant `secrets.compare_digest()` dans le code de votre application, votre application sera protégée contre toute cette gamme d'attaques de sécurité.
    
    ### Renvoyer l'erreur { #return-the-error }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  3. scan.go

    					}
    				}
    			}
    
    			for initialized || rows.Next() {
    			BEGIN:
    				initialized = false
    
    				if update {
    					if int(db.RowsAffected) >= reflectValue.Len() {
    						return
    					}
    					elem = reflectValue.Index(int(db.RowsAffected))
    					if onConflictDonothing {
    						for _, field := range fields {
    							if _, ok := field.ValueOf(db.Statement.Context, elem); !ok {
    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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. docs/ru/docs/tutorial/path-params.md

    {* ../../docs_src/path_params/tutorial005_py310.py hl[20] *}
    
    /// tip | Подсказка
    
    Значение `"lenet"` также можно получить с помощью `ModelName.lenet.value`.
    
    ///
    
    #### Возврат *элементов перечисления* { #return-enumeration-members }
    
    Из *операции пути* можно вернуть *элементы перечисления*, даже вложенные в тело JSON (например в `dict`).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 14K bytes
    - Click Count (0)
  9. docs/uk/docs/tutorial/security/simple-oauth2.md

    )
    ```
    
    /// info | Інформація
    
    Для повнішого пояснення `**user_dict` перегляньте [документацію для **Додаткових моделей**](../extra-models.md#about-user-in-dict).
    
    ///
    
    ## Поверніть токен { #return-the-token }
    
    Відповідь точки входу `token` має бути об'єктом JSON.
    
    Вона повинна містити `token_type`. У нашому випадку, оскільки ми використовуємо токени «Bearer», тип токена має бути «`bearer`».
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 15K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt

        val result = mutableListOf<String>()
        filesystem.read(journalFile) {
          while (true) {
            val line = readUtf8Line() ?: break
            result.add(line)
          }
        }
        return result
      }
    
      private fun getCleanFile(
        key: String,
        index: Int,
      ) = cacheDir / "$key.$index"
    
      private fun getDirtyFile(
        key: String,
        index: Int,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 59.4K bytes
    - Click Count (0)
Back to Top