Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for encoded (0.2 sec)

  1. fastapi/encoders.py

        """
        custom_encoder = custom_encoder or {}
        if custom_encoder:
            if type(obj) in custom_encoder:
                return custom_encoder[type(obj)](obj)
            else:
                for encoder_type, encoder_instance in custom_encoder.items():
                    if isinstance(obj, encoder_type):
                        return encoder_instance(obj)
        if include is not None and not isinstance(include, (set, dict)):
    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)
  2. docs/en/docs/tutorial/request-files.md

    **FastAPI** will make sure to read that data from the right place instead of JSON.
    
    !!! note "Technical Details"
        Data from forms is normally encoded using the "media type" `application/x-www-form-urlencoded` when it doesn't include files.
    
        But when the form includes files, it is encoded as `multipart/form-data`. If you use `File`, **FastAPI** will know it has to get the files from the correct part of the body.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/custom-response.md

    This is because by default, FastAPI will inspect every item inside and make sure it is serializable as JSON, using the same [JSON Compatible Encoder](../tutorial/encoder.md){.internal-link target=_blank} explained in the tutorial. This is what allows you to return **arbitrary objects**, for example database models.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_body/test_tutorial001_py310.py

                            "error": "Expecting property name enclosed in double quotes"
                        },
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["body", 1],
                        "msg": "Expecting property name enclosed in double quotes: line 1 column 2 (char 1)",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 15K bytes
    - Viewed (2)
  5. tests/test_tutorial/test_body/test_tutorial001.py

                            "error": "Expecting property name enclosed in double quotes"
                        },
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["body", 1],
                        "msg": "Expecting property name enclosed in double quotes: line 1 column 2 (char 1)",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 14.7K bytes
    - Viewed (7)
  6. fastapi/openapi/models.py

        format: Optional[str] = None
        # Ref: JSON Schema Validation 2020-12: https://json-schema.org/draft/2020-12/json-schema-validation.html#name-a-vocabulary-for-the-conten
        # A Vocabulary for the Contents of String-Encoded Data
        contentEncoding: Optional[str] = None
        contentMediaType: Optional[str] = None
        contentSchema: Optional["SchemaOrBool"] = None
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (1)
  7. docs/vi/docs/features.md

    Với **FastAPI**, bạn có được tất cả những tính năng của **Starlette**:
    
    * Hiệu năng thực sự ấn tượng. Nó là <a href="https://github.com/encode/starlette#performance" class="external-link" target="_blank">một trong nhưng framework Python nhanh nhất, khi so sánh với **NodeJS** và **Go**</a>.
    * Hỗ trợ **WebSocket**.
    * In-process background tasks.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  8. docs/en/docs/contributing.md

    * In code blocks within the Markdown document, translate comments (`# a comment`), but leave the rest unchanged.
    
    * Do not change anything enclosed in "``" (inline code).
    
    * In lines starting with `===` or `!!!`, translate only the ` "... Text ..."` part. Leave the rest unchanged.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 17:42:43 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  9. docs/en/docs/alternatives.md

        Hug inspired **FastAPI** to declare a `response` parameter in functions to set headers and cookies.
    
    ### <a href="https://github.com/encode/apistar" class="external-link" target="_blank">APIStar</a> (<= 0.5)
    
    Right before deciding to build **FastAPI** I found **APIStar** server. It had almost everything I was looking for and had a great design.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  10. docs/em/docs/alternatives.md

        🤗 😮 🍕 APIStar, &amp; 1️⃣ 🧰 👤 🔎 🏆 👍, 🌟 APIStar.
    
        🤗 ℹ 😍 **FastAPI** ⚙️ 🐍 🆎 🔑 📣 🔢, &amp; 🏗 🔗 ⚖ 🛠️ 🔁.
    
        🤗 😮 **FastAPI** 📣 `response` 🔢 🔢 ⚒ 🎚 &amp; 🍪.
    
    ### <a href="https://github.com/encode/apistar" class="external-link" target="_blank">APIStar</a> (&lt;= 0️⃣.5️⃣)
    
    ▶️️ ⏭ 🤔 🏗 **FastAPI** 👤 🔎 **APIStar** 💽. ⚫️ ✔️ 🌖 🌐 👤 👀 &amp; ✔️ 👑 🔧.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 18.7K bytes
    - Viewed (0)
Back to top