Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 771 - 780 of 1,156 for orjson (0.07 seconds)

  1. tests/test_tutorial/test_dependencies/test_tutorial008d.py

        assert response.status_code == 404, response.text
        assert response.json() == {"detail": "Item not found, there's only a plumbus here"}
    
    
    def test_get(mod: ModuleType):
        client = TestClient(mod.app)
        response = client.get("/items/plumbus")
        assert response.status_code == 200, response.text
        assert response.json() == "plumbus"
    
    
    def test_internal_error(mod: ModuleType):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  2. docs/es/docs/tutorial/request-files.md

    La manera en que los forms de HTML (`<form></form>`) envían los datos al servidor normalmente utiliza una codificación "especial" para esos datos, es diferente de JSON.
    
    **FastAPI** se asegurará de leer esos datos del lugar correcto en lugar de JSON.
    
    /// note | Detalles Técnicos
    
    Los datos de los forms normalmente se codifican usando el "media type" `application/x-www-form-urlencoded` cuando no incluyen archivos.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  3. docs/zh/docs/tutorial/request-files.md

    /// note | Starlette 技术细节
    
    **FastAPI** 的 `UploadFile` 直接继承自 **Starlette** 的 `UploadFile`,但添加了一些必要功能,使之与 **Pydantic** 及 FastAPI 的其它部件兼容。
    
    ///
    
    ## 什么是 「表单数据」
    
    与 JSON 不同,HTML 表单(`<form></form>`)向服务器发送数据通常使用「特殊」的编码。
    
    **FastAPI** 要确保从正确的位置读取数据,而不是读取 JSON。
    
    /// note | 技术细节
    
    不包含文件时,表单数据一般用 `application/x-www-form-urlencoded`「媒体类型」编码。
    
    但表单包含文件时,编码为 `multipart/form-data`。使用了 `File`,**FastAPI** 就知道要从请求体的正确位置获取文件。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 6.3K bytes
    - Click Count (0)
  4. docs/zh-hant/docs/features.md

    * 使用 <a href="https://json-schema.org/" class="external-link" target="_blank"><strong>JSON Schema</strong></a>(因為 OpenAPI 本身就是基於 JSON Schema)自動生成資料模型文件。
    * 經過縝密的研究後圍繞這些標準進行設計,而不是事後在已有系統上附加的一層功能。
    * 這也讓我們在多種語言中可以使用自動**用戶端程式碼生成**。
    
    ### 能夠自動生成文件
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  5. docs_src/metadata/tutorial002_py39.py

    from fastapi import FastAPI
    
    app = FastAPI(openapi_url="/api/v1/openapi.json")
    
    
    @app.get("/items/")
    async def read_items():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 154 bytes
    - Click Count (0)
  6. docs/de/docs/tutorial/response-model.md

    * In der OpenAPI *Pfadoperation* ein **JSON-Schema** für die Response hinzuzufügen.
        * Dieses wird von der **automatischen Dokumentation** verwendet.
        * Es wird auch von automatisch Client-Code-generierenden Tools verwendet.
    
    Aber am wichtigsten:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 24 10:28:19 GMT 2025
    - 17.5K bytes
    - Click Count (0)
  7. docs_src/app_testing/app_a_py39/test_main.py

    from fastapi.testclient import TestClient
    
    from .main import app
    
    client = TestClient(app)
    
    
    def test_read_main():
        response = client.get("/")
        assert response.status_code == 200
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 238 bytes
    - Click Count (0)
  8. cmd/xl-storage-format-v2.go

    type xlMetaV2Object struct {
    	VersionID          [16]byte          `json:"ID" msg:"ID"`                                    // Version ID
    	DataDir            [16]byte          `json:"DDir" msg:"DDir"`                                // Data dir ID
    	ErasureAlgorithm   ErasureAlgo       `json:"EcAlgo" msg:"EcAlgo"`                            // Erasure coding algorithm
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 65.6K bytes
    - Click Count (1)
  9. docs/ja/docs/tutorial/response-model.md

    例えば、NoSQLデータベースに多くのオプション属性を持つモデルがあるが、デフォルト値でいっぱいの非常に長いJSONレスポンスを送信したくない場合です。
    
    ### `response_model_exclude_unset`パラメータの使用
    
    *path operation デコレータ*に`response_model_exclude_unset=True`パラメータを設定することができます:
    
    {* ../../docs_src/response_model/tutorial004.py hl[24] *}
    
    そして、これらのデフォルト値はレスポンスに含まれず、実際に設定された値のみが含まれます。
    
    そのため、*path operation*にID`foo`が設定されたitemのリクエストを送ると、レスポンスは以下のようになります(デフォルト値を含まない):
    
    ```JSON
    {
        "name": "Foo",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 9K bytes
    - Click Count (0)
  10. samples/guide/src/main/java/okhttp3/recipes/AccessHeaders.java

            .url("https://api.github.com/repos/square/okhttp/issues")
            .header("User-Agent", "OkHttp Headers.java")
            .addHeader("Accept", "application/json; q=0.5")
            .addHeader("Accept", "application/vnd.github.v3+json")
            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun May 22 01:29:42 GMT 2016
    - 1.6K bytes
    - Click Count (0)
Back to Top