Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 221 - 230 of 376 for Starlettes (0.1 seconds)

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

    /// note | Détails techniques
    
    Vous pouvez aussi utiliser `from starlette.responses import JSONResponse`.
    
    **FastAPI** fournit le même `starlette.responses` que `fastapi.responses` uniquement par commodité pour vous, développeur. Mais la plupart des réponses disponibles proviennent directement de Starlette.
    
    ///
    
    ## Renvoyer une `Response` personnalisée { #returning-a-custom-response }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  2. docs/ja/docs/tutorial/testing.md

    また、クライアントへの呼び出しも通常の呼び出しであり、`await` を使用しません。
    
    これにより、煩雑にならずに、`pytest` を直接使用できます。
    
    ///
    
    /// note | 技術詳細
    
    `from starlette.testclient import TestClient` も使用できます。
    
    **FastAPI** は開発者の利便性のために `fastapi.testclient` と同じ `starlette.testclient` を提供します。しかし、実際にはStarletteから直接渡されています。
    
    ///
    
    /// tip
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  3. docs/ko/docs/advanced/testing-events.md

    테스트에서 `lifespan`을 실행해야 하는 경우, `with` 문과 함께 `TestClient`를 사용할 수 있습니다:
    
    {* ../../docs_src/app_testing/tutorial004_py310.py hl[9:15,18,27:28,30:32,41:43] *}
    
    
    ["공식 Starlette 문서 사이트에서 테스트에서 라이프스팬 실행하기."](https://www.starlette.dev/lifespan/#running-lifespan-in-tests)에 대한 자세한 내용을 더 읽을 수 있습니다.
    
    더 이상 권장되지 않는 `startup` 및 `shutdown` 이벤트의 경우, 다음과 같이 `TestClient`를 사용할 수 있습니다:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:57:01 GMT 2026
    - 741 bytes
    - Click Count (0)
  4. tests/test_datastructures.py

    from fastapi.datastructures import Default
    from fastapi.testclient import TestClient
    
    
    def test_upload_file_invalid_pydantic_v2():
        with pytest.raises(ValueError):
            UploadFile._validate("not a Starlette UploadFile", {})
    
    
    def test_default_placeholder_equals():
        placeholder_1 = Default("a")
        placeholder_2 = Default("a")
        assert placeholder_1 == placeholder_2
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  5. docs/en/docs/advanced/response-directly.md

    /// note | Technical Details
    
    You could also use `from starlette.responses import JSONResponse`.
    
    **FastAPI** provides the same `starlette.responses` as `fastapi.responses` just as a convenience for you, the developer. But most of the available responses come directly from Starlette.
    
    ///
    
    ## Returning a custom `Response` { #returning-a-custom-response }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4K bytes
    - Click Count (0)
  6. docs/zh-hant/docs/tutorial/request-files.md

    你會如宣告所示,收到由 `bytes` 或 `UploadFile` 組成的 `list`。
    
    /// note | 技術細節
    
    你也可以使用 `from starlette.responses import HTMLResponse`。
    
    **FastAPI** 為了讓你(開發者)更方便,提供與 `starlette.responses` 相同的內容作為 `fastapi.responses`。但大多數可用的回應類型其實直接來自 Starlette。
    
    ///
    
    ### 多檔案上傳且包含額外中繼資料 { #multiple-file-uploads-with-additional-metadata }
    
    同樣地,即使對 `UploadFile`,你也可以用 `File()` 設定額外參數:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  7. docs/ru/docs/tutorial/path-operation-configuration.md

    /// note | Технические детали
    
    Вы также можете использовать `from starlette import status`.
    
    **FastAPI** предоставляет тот же `starlette.status` под псевдонимом `fastapi.status` для удобства разработчика. Но его источник - это непосредственно Starlette.
    
    ///
    
    ## Теги { #tags }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 6.4K bytes
    - Click Count (0)
  8. docs/ja/docs/tutorial/middleware.md

    ただし、ブラウザのクライアントに表示させたいカスタムヘッダーがある場合は、[CORS (Cross-Origin Resource Sharing)](cors.md) の設定に、[StarletteのCORSドキュメント](https://www.starlette.dev/middleware/#corsmiddleware)に記載されているパラメータ `expose_headers` を使用して、それらを追加する必要があります。
    
    ///
    
    /// note | 技術詳細
    
    `from starlette.requests import Request` を使用することもできます。
    
    **FastAPI**は、開発者の便利のためにこれを提供していますが、Starletteから直接きています。
    
    ///
    
    ### `response` の前後 { #before-and-after-the-response }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  9. docs/de/docs/tutorial/path-operation-configuration.md

    /// note | Technische Details
    
    Sie können auch `from starlette import status` verwenden.
    
    **FastAPI** bietet dieselben `starlette.status`-Codes auch via `fastapi.status` an, als Annehmlichkeit für Sie, den Entwickler. Sie kommen aber direkt von Starlette.
    
    ///
    
    ## Tags { #tags }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  10. docs/en/docs/tutorial/path-operation-configuration.md

    That status code will be used in the response and will be added to the OpenAPI schema.
    
    /// note | Technical Details
    
    You could also use `from starlette import status`.
    
    **FastAPI** provides the same `starlette.status` as `fastapi.status` just as a convenience for you, the developer. But it comes directly from Starlette.
    
    ///
    
    ## Tags { #tags }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4K bytes
    - Click Count (0)
Back to Top