Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 171 - 180 of 580 for Extras (0.07 seconds)

  1. docs/zh/docs/tutorial/cookie-param-models.md

    在某些特殊使用情况下(可能并不常见),您可能希望**限制**您想要接收的 cookie。
    
    您的 API 现在可以控制自己的 <abbr title="顺带一提,这是一个笑话。它与 cookie 同意无关,但现在连API都能拒绝那些可怜的 cookie,真是太有意思了。来,吃块小饼干(cookie)吧。🍪">cookie 同意</abbr>。🤪🍪
    
    您可以使用 Pydantic 的模型配置来禁止( `forbid` )任何额外( `extra` )字段:
    
    {* ../../docs_src/cookie_param_models/tutorial002_an_py39.py hl[10] *}
    
    如果客户尝试发送一些**额外的 cookie**,他们将收到**错误**响应。
    
    可怜的 cookie 通知条,费尽心思为了获得您的同意,却被<abbr title="这又是一个笑话,别管我了,给您的小饼干(cookie)配上点咖啡吧。☕">API 拒绝了</abbr>。🍪
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 10 20:38:03 GMT 2024
    - 3K bytes
    - Click Count (0)
  2. docs_src/header_param_models/tutorial002_an_py39.py

    from typing import Annotated, Union
    
    from fastapi import FastAPI, Header
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class CommonHeaders(BaseModel):
        model_config = {"extra": "forbid"}
    
        host: str
        save_data: bool
        if_modified_since: Union[str, None] = None
        traceparent: Union[str, None] = None
        x_tag: list[str] = []
    
    
    @app.get("/items/")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Sep 17 18:54:10 GMT 2024
    - 451 bytes
    - Click Count (0)
  3. docs_src/query_param_models/tutorial002_an_py39.py

    from typing import Annotated, Literal
    
    from fastapi import FastAPI, Query
    from pydantic import BaseModel, Field
    
    app = FastAPI()
    
    
    class FilterParams(BaseModel):
        model_config = {"extra": "forbid"}
    
        limit: int = Field(100, gt=0, le=100)
        offset: int = Field(0, ge=0)
        order_by: Literal["created_at", "updated_at"] = "created_at"
        tags: list[str] = []
    
    
    @app.get("/items/")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 483 bytes
    - Click Count (0)
  4. docs/es/docs/advanced/security/index.md

    # Seguridad Avanzada { #advanced-security }
    
    ## Funcionalidades Adicionales { #additional-features }
    
    Hay algunas funcionalidades extra para manejar la seguridad aparte de las cubiertas en el [Tutorial - Guía del Usuario: Seguridad](../../tutorial/security/index.md){.internal-link target=_blank}.
    
    /// tip | Consejo
    
    Las siguientes secciones **no son necesariamente "avanzadas"**.
    
    Y es posible que para tu caso de uso, la solución esté en una de ellas.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 786 bytes
    - Click Count (0)
  5. docs/zh/docs/tutorial/header-param-models.md

    <div class="screenshot">
    <img src="/img/tutorial/header-param-models/image01.png">
    </div>
    
    ## 禁止额外的 Headers
    
    在某些特殊使用情况下(可能并不常见),您可能希望**限制**您想要接收的 headers。
    
    您可以使用 Pydantic 的模型配置来禁止( `forbid` )任何额外( `extra` )字段:
    
    {* ../../docs_src/header_param_models/tutorial002_an_py310.py hl[10] *}
    
    如果客户尝试发送一些**额外的 headers**,他们将收到**错误**响应。
    
    例如,如果客户端尝试发送一个值为 `plumbus` 的 `tool` header,客户端将收到一个**错误**响应,告知他们 header 参数 `tool` 是不允许的:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Dec 15 16:44:11 GMT 2024
    - 1.7K bytes
    - Click Count (0)
  6. .teamcity/src/main/kotlin/projects/CheckProject.kt

                    description = "The extra gradle parameters you want to pass to this build, e.g. `-PrerunAllTests` or `--no-build-cache`",
                )
                text(
                    "reverse.dep.*.additional.gradle.parameters",
                    "",
                    display = ParameterDisplay.NORMAL,
                    allowEmpty = true,
                    description =
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Feb 12 09:12:03 GMT 2025
    - 3.9K bytes
    - Click Count (1)
  7. docs/es/docs/tutorial/body-updates.md

    Para distinguir entre los modelos con todos los valores opcionales para **actualizaciones** y modelos con valores requeridos para **creación**, puedes utilizar las ideas descritas en [Modelos Extra](extra-models.md){.internal-link target=_blank}.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/testing/Flaky.kt

     * limitations under the License.
     */
    package okhttp3.testing
    
    @Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
    @Retention(AnnotationRetention.RUNTIME)
    /**
     * Annotation marking a test as flaky, and requires extra logging and linking against
     * a known github issue.  This does not ignore the failure.
     */
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 902 bytes
    - Click Count (0)
  9. docs/en/docs/tutorial/body-updates.md

    To distinguish from the models with all optional values for **updates** and models with required values for **creation**, you can use the ideas described in [Extra Models](extra-models.md){.internal-link target=_blank}.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  10. helm/minio/templates/deployment.yaml

                  {{- if and .Values.persistence.enabled .Values.persistence.subPath }}
                  subPath: "{{ .Values.persistence.subPath }}"
                  {{- end }}
                {{- if .Values.extraSecret }}
                - name: extra-secret
                  mountPath: "/tmp/minio-config-env"
                {{- end }}
                {{- include "minio.tlsKeysVolumeMount" . | indent 12 }}
                {{- if .Values.extraVolumeMounts }}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Oct 10 15:48:31 GMT 2024
    - 8.6K bytes
    - Click Count (0)
Back to Top