Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 618 for Encoder (0.06 sec)

  1. docs/em/docs/advanced/response-directly.md

    1. # 📨 📨 🔗
    2.  
    3. 🕐❔ 👆 **FastAPI** *➡ 🛠️* 👆 💪 🛎 📨 🙆 📊 ⚪️➡️ ⚫️: `dict`, `list`, Pydantic 🏷, 💽 🏷, ♒️.
    4.  
    5. 🔢, **FastAPI** 🔜 🔁 🗜 👈 📨 💲 🎻 ⚙️ `jsonable_encoder` 🔬 [🎻 🔗 🔢](../tutorial/encoder.md){.internal-link target=_blank}.
    6.  
    7. ⤴️, 🎑, ⚫️ 🔜 🚮 👈 🎻-🔗 💽 (✅ `dict`) 🔘 `JSONResponse` 👈 🔜 ⚙️ 📨 📨 👩‍💻.
    8.  
    9. ✋️ 👆 💪 📨 `JSONResponse` 🔗 ⚪️➡️ 👆 *➡ 🛠️*.
    10.  
    11. ⚫️ 💪 ⚠, 🖼, 📨 🛃 🎚 ⚖️ 🍪.
    12.  
    13. ## 📨 `Response`
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. docs/zh/docs/how-to/general.md

    1. 在文档界面中显示弃用的**路径操作**,请阅读 [教程 - 路径操作配置 - 弃用](../tutorial/path-operation-configuration.md#deprecate-a-path-operation){.internal-link target=_blank} 文档。
    2.  
    3. ## 将任何数据转换为 JSON 兼容格式
    4.  
    5. 要将任何数据转换为 JSON 兼容格式,请阅读 [教程 - JSON 兼容编码器](../tutorial/encoder.md){.internal-link target=_blank} 文档。
    6.  
    7. ## OpenAPI 元数据 - 文档
    8.  
    9. 要添加 OpenAPI 的元数据,包括许可证、版本、联系方式等,请阅读 [教程 - 元数据和文档 URL](../tutorial/metadata.md){.internal-link target=_blank} 文档。
    10.  
    11. ## OpenAPI 自定义 URL
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Apr 22 23:41:09 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. internal/bucket/replication/destination.go

    1. // used for multi-destination targets
    2. func (d Destination) TargetArn() bool {
    3. return strings.HasPrefix(d.ARN, DestinationARNMinIOPrefix)
    4. }
    5.  
    6. // MarshalXML - encodes to XML data.
    7. func (d Destination) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
    8. if err := e.EncodeToken(start); err != nil {
    9. return err
    10. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. docs/es/docs/advanced/response-directly.md

    1. Por defecto, **FastAPI** convertiría automáticamente ese valor devuelto a JSON usando el `jsonable_encoder` explicado en [Codificador Compatible JSON](../tutorial/encoder.md){.internal-link target=_blank}.
    2.  
    3. Luego, tras bastidores, pondría esos datos compatibles con JSON (por ejemplo, un `dict`) dentro de una `JSONResponse` que se usaría para enviar la respuesta al cliente.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/idn/PunycodeTest.kt

    1. * overflow and return null.
    2. */
    3. @Test fun overflowEncodingOversizedLabel() {
    4. val a1000 = "a".repeat(1000)
    5. val a1000MaxCodePoint = a1000 + "\udbff\udfff"
    6. testEncodeDecode(
    7. a1000MaxCodePoint,
    8. "xn--$a1000-nc89312g",
    9. )
    10. assertNull(
    11. Punycode.encode(a1000MaxCodePoint.repeat(2)),
    12. )
    13. }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. internal/bucket/encryption/bucket-sse-config.go

    1. default:
    2. return errors.New("Unknown SSE algorithm")
    3. }
    4.  
    5. return nil
    6. }
    7.  
    8. // MarshalXML - Marshals given SSE algorithm to valid XML
    9. func (alg *Algorithm) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
    10. return e.EncodeElement(string(*alg), start)
    11. }
    12.  
    13. // EncryptionAction - for ApplyServerSideEncryptionByDefault XML tag
    14. type EncryptionAction struct {
    15. Algorithm Algorithm `xml:"SSEAlgorithm,omitempty"`
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 25 00:44:15 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/custom-response.md

    1. 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.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 12K bytes
    - Viewed (0)
  8. docs/ko/docs/advanced/response-directly.md

    1. # 응답을 직접 반환하기
    2.  
    3. **FastAPI**에서 *경로 작업(path operation)*을 생성할 때, 일반적으로 `dict`, `list`, Pydantic 모델, 데이터베이스 모델 등의 데이터를 반환할 있습니다.
    4.  
    5. 기본적으로 **FastAPI**는 [JSON 호환 가능 인코더](../tutorial/encoder.md){.internal-link target=_blank}에 설명된 `jsonable_encoder` 사용해 해당 반환 값을 자동으로 `JSON`으로 변환합니다.
    6.  
    7. 그런 다음, JSON 호환 데이터(예: `dict`)를 `JSONResponse` 넣어 사용자의 응답을 전송하는 방식으로 처리됩니다.
    8.  
    9. 그러나 *경로 작업*에서 `JSONResponse` 직접 반환할 수도 있습니다.
    10.  
    11. 예를 들어, 사용자 정의 헤더나 쿠키를 반환해야 하는 경우에 유용할 있습니다.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 30 20:00:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. docs/zh/docs/advanced/response-directly.md

    1. # 直接返回响应
    2.  
    3. 当你创建一个 **FastAPI** *路径操作* 时,你可以正常返回以下任意一种数据:`dict``list`Pydantic 模型,数据库模型等等。
    4.  
    5. **FastAPI** 默认会使用 `jsonable_encoder` 将这些类型的返回值转换成 JSON 格式,`jsonable_encoder` [JSON 兼容编码器](../tutorial/encoder.md){.internal-link target=_blank} 中有阐述。
    6.  
    7. 然后,**FastAPI** 会在后台将这些兼容 JSON 的数据(比如字典)放到一个 `JSONResponse` 中,该 `JSONResponse` 会用来发送响应给客户端。
    8.  
    9. 但是你可以在你的 *路径操作* 中直接返回一个 `JSONResponse`
    10.  
    11. 直接返回响应可能会有用处,比如返回自定义的响应头和 cookies
    12.  
    13. ## 返回 `Response`
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. internal/bucket/replication/filter.go

    1. }
    2.  
    3. // MarshalXML - produces the xml representation of the Filter struct
    4. // only one of Prefix, And and Tag should be present in the output.
    5. func (f Filter) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
    6. if err := e.EncodeToken(start); err != nil {
    7. return err
    8. }
    9.  
    10. switch {
    11. case !f.And.isEmpty():
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 28 18:25:46 UTC 2022
    - 3.5K bytes
    - Viewed (0)
Back to top