Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1051 - 1060 of 1,184 for asdict (0.06 sec)

  1. docs/zh/docs/advanced/custom-response.md

    ///
    
    ### `Response`
    
    其他全部的响应都继承自主类 `Response`。
    
    你可以直接返回它。
    
    `Response` 类接受如下参数:
    
    * `content` - 一个 `str` 或者 `bytes`。
    * `status_code` - 一个 `int` 类型的 HTTP 状态码。
    * `headers` - 一个由字符串组成的 `dict`。
    * `media_type` - 一个给出媒体类型的 `str`,比如 `"text/html"`。
    
    FastAPI(实际上是 Starlette)将自动包含 Content-Length 的头。它还将包含一个基于 media_type 的 Content-Type 头,并为文本类型附加一个字符集。
    
    
    ```Python hl_lines="1  18"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/path-params.md

    ```Python hl_lines="20"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    /// tip | "提示"
    
    使用 `ModelName.lenet.value` 也能获取值 `"lenet"`。
    
    ///
    
    #### 返回*枚举元素*
    
    即使嵌套在 JSON 请求体里(例如, `dict`),也可以从*路径操作*返回*枚举元素*。
    
    返回给客户端之前,要把枚举元素转换为对应的值(本例中为字符串):
    
    ```Python hl_lines="18  21  23"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    客户端中的 JSON 响应如下:
    
    ```JSON
    {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. docs/pt/docs/advanced/settings.md

    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 17K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableBiMap.java

        @SuppressWarnings("unchecked") // we will only ever read these
        Entry<K, V>[] entries2 = (Entry<K, V>[]) entries;
        return copyOf(Arrays.asList(entries2));
      }
    
      /**
       * Returns a new builder. The generated builder is equivalent to the builder created by the {@link
       * Builder} constructor.
       */
      public static <K, V> Builder<K, V> builder() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  5. docs/tr/docs/tutorial/first-steps.md

    ///
    
    ### Adım 5: İçeriği Geri Döndürün
    
    ```Python hl_lines="8"
    {!../../docs_src/first_steps/tutorial001.py!}
    ```
    
    Bir `dict`, `list` veya `str`, `int` gibi tekil değerler döndürebilirsiniz.
    
    Ayrıca, Pydantic modelleri de döndürebilirsiniz (bu konu ileriki aşamalarda irdelenecektir).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

                "maven.build.allowExpressionInEffectiveProjectVersion";
    
        public static final List<String> VALID_MODEL_VERSIONS =
                Collections.unmodifiableList(Arrays.asList("4.0.0", "4.1.0"));
    
        private static final Pattern EXPRESSION_NAME_PATTERN = Pattern.compile("\\$\\{(.+?)}");
        private static final Pattern EXPRESSION_PROJECT_NAME_PATTERN = Pattern.compile("\\$\\{(project.+?)}");
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 77.1K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/handling-errors.md

    ```JSON
    {
      "detail": "Item not found"
    }
    ```
    
    /// tip
    
    🕐❔ 🙋‍♀ `HTTPException`, 👆 💪 🚶‍♀️ 🙆 💲 👈 💪 🗜 🎻 🔢 `detail`, 🚫 🕴 `str`.
    
    👆 💪 🚶‍♀️ `dict`, `list`, ♒️.
    
    👫 🍵 🔁 **FastAPI** &amp; 🗜 🎻.
    
    ///
    
    ## 🚮 🛃 🎚
    
    📤 ⚠ 🌐❔ ⚫️ ⚠ 💪 🚮 🛃 🎚 🇺🇸🔍 ❌. 🖼, 🆎 💂‍♂.
    
    👆 🎲 🏆 🚫 💪 ⚙️ ⚫️ 🔗 👆 📟.
    
    ✋️ 💼 👆 💪 ⚫️ 🏧 😐, 👆 💪 🚮 🛃 🎚:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/path-params.md

    You could also access the value `"lenet"` with `ModelName.lenet.value`.
    
    ///
    
    #### Return *enumeration members*
    
    You can return *enum members* from your *path operation*, even nested in a JSON body (e.g. a `dict`).
    
    They will be converted to their corresponding values (strings in this case) before returning them to the client:
    
    ```Python hl_lines="18  21  23"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  9. docs/es/docs/tutorial/first-steps.md

    ///
    
    ### Paso 5: devuelve el contenido
    
    ```Python hl_lines="8"
    {!../../docs_src/first_steps/tutorial001.py!}
    ```
    
    Puedes devolver `dict`, `list`, valores singulares como un `str`, `int`, etc.
    
    También puedes devolver modelos de Pydantic (ya verás más sobre esto más adelante).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. docs/es/docs/tutorial/path-params.md

    ///
    
    #### Devuelve *enumeration members*
    
    Puedes devolver *enum members* desde tu *operación de path* inclusive en un body de JSON anidado (por ejemplo, un `dict`).
    
    Ellos serán convertidos a sus valores correspondientes (strings en este caso) antes de devolverlos al cliente:
    
    ```Python hl_lines="18  21  23"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top