Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 111 - 120 of 187 for decorate (0.09 seconds)

  1. docs/zh-hant/docs/tutorial/response-status-code.md

    * `@app.get()`
    * `@app.post()`
    * `@app.put()`
    * `@app.delete()`
    * 等等
    
    {* ../../docs_src/response_status_code/tutorial001_py310.py hl[6] *}
    
    /// note | 注意
    
    請注意,`status_code` 是「裝飾器(decorator)」方法(`get`、`post` 等等)的參數,而不是你的「路徑操作函式」的參數,就像所有的參數與 body 一樣。
    
    ///
    
    參數 `status_code` 接受一個數字作為 HTTP 狀態碼。
    
    /// info | 資訊
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  2. docs/ko/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    그러나 여전히 실행/해결될 필요가 있습니다.
    
    그런 경우에, `Depends`를 사용하여 *경로 처리 함수*의 매개변수로 선언하는 대신 *경로 처리 데코레이터*에 `dependencies`의 `list`를 추가할 수 있습니다.
    
    ## *경로 처리 데코레이터*에 `dependencies` 추가하기 { #add-dependencies-to-the-path-operation-decorator }
    
    *경로 처리 데코레이터*는 선택적인 인자 `dependencies`를 받습니다.
    
    `Depends()`로 된 `list`이어야 합니다:
    
    {* ../../docs_src/dependencies/tutorial006_an_py310.py hl[19] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 3.4K bytes
    - Click Count (0)
  3. docs/zh/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    有时,我们并不需要在*路径操作函数*中使用依赖项的返回值。
    
    或者说,有些依赖项不返回值。
    
    但仍要执行或解析该依赖项。
    
    对于这种情况,不必在声明*路径操作函数*的参数时使用 `Depends`,而是可以在*路径操作装饰器*中添加一个由 `dependencies` 组成的 `list`。
    
    ## 在*路径操作装饰器*中添加 `dependencies` 参数 { #add-dependencies-to-the-path-operation-decorator }
    
    *路径操作装饰器*支持可选参数 `dependencies`。
    
    该参数的值是由 `Depends()` 组成的 `list`:
    
    {* ../../docs_src/dependencies/tutorial006_an_py310.py hl[19] *}
    
    路径操作装饰器依赖项的执行或解析方式和普通依赖项一样,但就算这些依赖项会返回值,它们的值也不会传递给*路径操作函数*。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  4. docs/fr/docs/advanced/async-tests.md

    ## Exemple { #example }
    
    Pour un exemple simple, considérons une structure de fichiers similaire à celle décrite dans [Applications plus grandes](../tutorial/bigger-applications.md) et [Tests](../tutorial/testing.md) :
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  5. docs/en/docs/advanced/events.md

    And the part after the `yield` will be executed **after** the application has finished.
    
    ### Async Context Manager { #async-context-manager }
    
    If you check, the function is decorated with an `@asynccontextmanager`.
    
    That converts the function into something called an "**async context manager**".
    
    {* ../../docs_src/events/tutorial003_py310.py hl[1,13] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/ForwardingSortedMap.java

     * override one or more methods to modify the behavior of the backing sorted map as desired per the
     * <a href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>.
     *
     * <p><b>Warning:</b> The methods of {@code ForwardingSortedMap} forward <i>indiscriminately</i> to
     * the methods of the delegate. For example, overriding {@link #put} alone <i>will not</i> change
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 12 16:28:01 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/ForwardingSortedSet.java

     * override one or more methods to modify the behavior of the backing sorted set as desired per the
     * <a href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>.
     *
     * <p><b>Warning:</b> The methods of {@code ForwardingSortedSet} forward <i>indiscriminately</i> to
     * the methods of the delegate. For example, overriding {@link #add} alone <i>will not</i> change
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 12 16:28:01 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/ForwardingSortedSet.java

     * override one or more methods to modify the behavior of the backing sorted set as desired per the
     * <a href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>.
     *
     * <p><b>Warning:</b> The methods of {@code ForwardingSortedSet} forward <i>indiscriminately</i> to
     * the methods of the delegate. For example, overriding {@link #add} alone <i>will not</i> change
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 12 16:28:01 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  9. docs/uk/docs/tutorial/first-steps.md

    #### Визначте *декоратор операції шляху* { #define-a-path-operation-decorator }
    
    {* ../../docs_src/first_steps/tutorial001_py310.py hl[6] *}
    
    Декоратор `@app.get("/")` повідомляє **FastAPI**, що функція одразу нижче відповідає за обробку запитів, які надходять до:
    
    * шляху `/`
    * використовуючи <dfn title="HTTP метод GET"><code>get</code> операція</dfn>
    
    /// info | `@decorator` Інформація
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 18.7K bytes
    - Click Count (0)
  10. docs/zh-hant/docs/tutorial/first-steps.md

    所以,在 OpenAPI 中,每個 HTTP 方法都被稱為「操作」。
    
    我們將會稱它們為「**操作**」。
    
    #### 定義一個「路徑操作裝飾器」 { #define-a-path-operation-decorator }
    
    {* ../../docs_src/first_steps/tutorial001_py310.py hl[6] *}
    
    `@app.get("/")` 告訴 **FastAPI** 那個函式負責處理請求:
    
    * 路徑 `/`
    * 使用 <dfn title="HTTP GET 方法"><code>get</code> 操作</dfn>
    
    /// info | `@decorator` 說明
    
    Python 中的 `@something` 語法被稱為「裝飾器」。
    
    你把它放在一個函式上面。像一個漂亮的裝飾帽子(我猜這是術語的來源)。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 13.3K bytes
    - Click Count (0)
Back to Top