Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1021 - 1030 of 1,178 for strs (0.02 sec)

  1. cmd/object-api-utils.go

    // Comparison is case insensitive. Explicit short-circuit if
    // the list contains the wildcard "*".
    func hasStringSuffixInSlice(str string, list []string) bool {
    	str = strings.ToLower(str)
    	for _, v := range list {
    		if v == "*" {
    			return true
    		}
    
    		if strings.HasSuffix(str, strings.ToLower(v)) {
    			return true
    		}
    	}
    	return false
    }
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Jun 25 15:08:54 UTC 2025
    - 37.3K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/body-multiple-params.md

        },
        "importance": 5
    }
    ```
    
    同样的,它将转换数据类型,校验,生成文档等。
    
    ## 多个请求体参数和查询参数
    
    当然,除了请求体参数外,你还可以在任何需要的时候声明额外的查询参数。
    
    由于默认情况下单一值被解释为查询参数,因此你不必显式地添加 `Query`,你可以仅执行以下操作:
    
    ```Python
    q: str = None
    ```
    
    比如:
    
    {* ../../docs_src/body_multiple_params/tutorial004_an_py310.py hl[27] *}
    
    /// info
    
    `Body` 同样具有与 `Query`、`Path` 以及其他后面将看到的类完全相同的额外校验和元数据参数。
    
    ///
    
    ## 嵌入单个请求体参数
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/security/http-basic-auth.md

    For this, use the Python standard module <a href="https://docs.python.org/3/library/secrets.html" class="external-link" target="_blank">`secrets`</a> to check the username and password.
    
    `secrets.compare_digest()` needs to take `bytes` or a `str` that only contains ASCII characters (the ones in English), this means it wouldn't work with characters like `á`, as in `Sebastián`.
    
    To handle that, we first convert the `username` and `password` to `bytes` encoding them with UTF-8.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 5K bytes
    - Viewed (0)
  4. cmd/http-tracer.go

    	op = strings.Replace(op, "(*storageRESTServer)", "storageR", 1)
    	op = strings.Replace(op, "(*peerRESTServer)", "peer", 1)
    	op = strings.Replace(op, "(*lockRESTServer)", "lockR", 1)
    	op = strings.Replace(op, "(*stsAPIHandlers)", "sts", 1)
    	op = strings.Replace(op, "(*peerS3Server)", "s3", 1)
    	op = strings.Replace(op, "ClusterCheckHandler", "health.Cluster", 1)
    	op = strings.Replace(op, "ClusterReadCheckHandler", "health.ClusterRead", 1)
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. docs/en/mkdocs.yml

      - Tutorial - User Guide:
        - tutorial/index.md
        - tutorial/first-steps.md
        - tutorial/path-params.md
        - tutorial/query-params.md
        - tutorial/body.md
        - tutorial/query-params-str-validations.md
        - tutorial/path-params-numeric-validations.md
        - tutorial/query-param-models.md
        - tutorial/body-multiple-params.md
        - tutorial/body-fields.md
        - tutorial/body-nested-models.md
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 10:44:55 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  6. docs/en/docs/release-notes.md

    ```Python
    from fastapi import FastAPI
    from pydantic import BaseModel as BaseModelV2
    from pydantic.v1 import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
    
    
    class ItemV2(BaseModelV2):
        title: str
        summary: str | None = None
    
    
    app = FastAPI()
    
    
    @app.post("/items/", response_model=ItemV2)
    def create_item(item: Item):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
  7. docs/zh/docs/tutorial/dependencies/index.md

    大功告成。
    
    只用了**2 行**代码。
    
    依赖项函数的形式和结构与*路径操作函数*一样。
    
    因此,可以把依赖项当作没有「装饰器」(即,没有 `@app.get("/some-path")` )的路径操作函数。
    
    依赖项可以返回各种内容。
    
    本例中的依赖项预期接收如下参数:
    
    * 类型为 `str` 的可选查询参数 `q`
    * 类型为 `int` 的可选查询参数 `skip`,默认值是 `0`
    * 类型为 `int` 的可选查询参数 `limit`,默认值是 `100`
    
    然后,依赖项函数返回包含这些值的 `dict`。
    
    ### 导入 `Depends`
    
    {* ../../docs_src/dependencies/tutorial001.py hl[3] *}
    
    ### 声明依赖项
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7K bytes
    - Viewed (0)
  8. docs/ru/docs/_llm-test.md

    ////
    
    ## Термины, используемые в документации { #terms-used-in-the-docs }
    
    //// tab | Тест
    
    * вы
    * ваш
    
    * например
    * и т.д.
    
    * `foo` как `int`
    * `bar` как `str`
    * `baz` как `list`
    
    * Учебник — Руководство пользователя
    * Расширенное руководство пользователя
    * Документация по SQLModel
    * Документация API
    * Автоматическая документация
    
    * Наука о данных
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 11 21:25:03 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  9. docs/es/docs/tutorial/dependencies/index.md

    Y puede devolver lo que quieras.
    
    En este caso, esta dependencia espera:
    
    * Un parámetro de query opcional `q` que es un `str`.
    * Un parámetro de query opcional `skip` que es un `int`, y por defecto es `0`.
    * Un parámetro de query opcional `limit` que es un `int`, y por defecto es `100`.
    
    Y luego solo devuelve un `dict` que contiene esos valores.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  10. docs/zh/docs/tutorial/handling-errors.md

    ```JSON
    {
      "detail": "Item not found"
    }
    
    ```
    
    /// tip | 提示
    
    触发 `HTTPException` 时,可以用参数 `detail` 传递任何能转换为 JSON 的值,不仅限于 `str`。
    
    还支持传递 `dict`、`list` 等数据结构。
    
    **FastAPI** 能自动处理这些数据,并将之转换为 JSON。
    
    ///
    
    ## 添加自定义响应头
    
    有些场景下要为 HTTP 错误添加自定义响应头。例如,出于某些方面的安全需要。
    
    一般情况下可能不会需要在代码中直接使用响应头。
    
    但对于某些高级应用场景,还是需要添加自定义响应头:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 8.2K bytes
    - Viewed (0)
Back to top