Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 29 of 29 for encoding (0.16 sec)

  1. docs/zh/docs/advanced/middleware.md

    ```
    
    支持以下参数:
    
    * `allowed_hosts` - 允许的域名(主机名)列表。`*.example.com` 等通配符域名可以匹配子域名,或使用 `allowed_hosts=["*"]` 允许任意主机名,或省略中间件。
    
    如果传入的请求没有通过验证,则发送 `400` 响应。
    
    ## `GZipMiddleware`
    
    处理 `Accept-Encoding` 请求头中包含 `gzip` 请求的 GZip 响应。
    
    中间件会处理标准响应与流响应。
    
    ```Python hl_lines="2  6"
    {!../../../docs_src/advanced_middleware/tutorial003.py!}
    ```
    
    支持以下参数:
    
    * `minimum_size` - 小于最小字节的响应不使用 GZip。 默认值是 `500`。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 22:44:27 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  2. fastapi/encoders.py

        """
        Encodes a Decimal as int of there's no exponent, otherwise float
    
        This is useful when we use ConstrainedDecimal to represent Numeric(x,0)
        where a integer (but not int typed) is used. Encoding this as a float
        results in failed round-tripping between encode and parse.
        Our Id type is a prime example of this.
    
        >>> decimal_encoder(Decimal("1.0"))
        1.0
    
        >>> decimal_encoder(Decimal("1"))
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/body-nested-models.md

    <img src="/img/tutorial/body-nested-models/image01.png">
    
    You couldn't get this kind of editor support if you were working directly with `dict` instead of Pydantic models.
    
    But you don't have to worry about them either, incoming dicts are converted automatically and your output is converted automatically to JSON too.
    
    ## Bodies of arbitrary `dict`s
    
    You can also declare a body as a `dict` with keys of some type and values of some other type.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  4. docs/en/data/external_links.yml

        title: Inbetriebnahme eines scikit-learn-Modells mit ONNX und FastAPI
      - author: Felix Schürmeyer
        author_link: https://hellocoding.de/autor/felix-schuermeyer/
        link: https://hellocoding.de/blog/coding-language/python/fastapi
        title: REST-API Programmieren mittels Python und dem FastAPI Modul
      Japanese:
      - author: '@bee2'
        author_link: https://qiita.com/bee2
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Mar 21 20:57:27 GMT 2024
    - 21.3K bytes
    - Viewed (2)
  5. fastapi/applications.py

                    **Note**: you probably shouldn't use this parameter, it is inherited
                    from Starlette and supported for compatibility.
    
                    ---
    
                    A list of routes to serve incoming HTTP and WebSocket requests.
                    """
                ),
                deprecated(
                    """
                    You normally wouldn't use this parameter with FastAPI, it is inherited
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/path-params-numeric-validations.md

        These functions are there (instead of just using the classes directly) so that your editor doesn't mark errors about their types.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/cors.md

    ### CORS preflight requests
    
    These are any `OPTIONS` request with `Origin` and `Access-Control-Request-Method` headers.
    
    In this case the middleware will intercept the incoming request and respond with appropriate CORS headers, and either a `200` or `400` response for informational purposes.
    
    ### Simple requests
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Nov 13 20:28:37 GMT 2022
    - 5.1K bytes
    - Viewed (0)
  8. docs/en/docs/deployment/docker.md

    One of those distributed container management systems like Kubernetes normally has some integrated way of handling **replication of containers** while still supporting **load balancing** for the incoming requests. All at the **cluster level**.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 34K bytes
    - Viewed (0)
  9. fastapi/routing.py

                    **Note**: you probably shouldn't use this parameter, it is inherited
                    from Starlette and supported for compatibility.
    
                    ---
    
                    A list of routes to serve incoming HTTP and WebSocket requests.
                    """
                ),
                deprecated(
                    """
                    You normally wouldn't use this parameter with FastAPI, it is inherited
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
Back to top