Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 453 for starlette (0.07 seconds)

  1. docs/en/docs/advanced/events.md

    /// info
    
    You can read more about the Starlette `lifespan` handlers in [Starlette's  Lifespan' docs](https://www.starlette.dev/lifespan/).
    
    Including how to handle lifespan state that can be used in other areas of your code.
    
    ///
    
    ## Sub Applications { #sub-applications }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  2. docs/zh/docs/tutorial/path-params.md

    此时,该文件的 URL 是这样的:`/files/home/johndoe/myfile.txt`。
    
    ### OpenAPI 支持 { #openapi-support }
    
    OpenAPI 不支持声明包含路径的路径参数,因为这会导致测试和定义更加困难。
    
    不过,仍可使用 Starlette 内置工具在 **FastAPI** 中实现这一功能。
    
    而且不影响文档正常运行,但是不会添加该参数包含路径的说明。
    
    ### 路径转换器 { #path-convertor }
    
    直接使用 Starlette 的选项声明包含路径的路径参数:
    
    ```
    /files/{file_path:path}
    ```
    
    本例中,参数名为 `file_path`,结尾部分的 `:path` 说明该参数应匹配路径。
    
    用法如下:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  3. 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)
  4. docs/en/docs/history-design-future.md

    During the development, I also contributed to [**Starlette**](https://www.starlette.dev/), the other key requirement.
    
    ## Development { #development }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4K bytes
    - Click Count (0)
  5. docs/en/docs/tutorial/path-params.md

    Nevertheless, you can still do it in **FastAPI**, using one of the internal tools from Starlette.
    
    And the docs would still work, although not adding any documentation telling that the parameter should contain a path.
    
    ### Path convertor { #path-convertor }
    
    Using an option directly from Starlette you can declare a *path parameter* containing a *path* using a URL like:
    
    ```
    /files/{file_path:path}
    ```
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  6. docs/zh/docs/history-design-future.md

    所有这些都是为了给开发者提供最佳的开发体验。
    
    ## 需求项 { #requirements }
    
    经过测试多种备选方案,我最终决定使用 [**Pydantic**](https://docs.pydantic.dev/),并充分利用它的优势。
    
    我甚至为它做了不少贡献,让它完美兼容了 JSON Schema,支持多种方式定义约束声明,并基于多个编辑器,改进了它对编辑器支持(类型检查、自动补全)。
    
    在开发期间,我还为 [**Starlette**](https://www.starlette.dev/) 做了不少贡献,这是另一个关键需求项。
    
    ## 开发 { #development }
    
    当我启动 **FastAPI** 开发的时候,绝大多数部件都已经就位,设计已经定义,需求项和工具也已经准备就绪,相关标准与规范的知识储备也非常清晰而新鲜。
    
    ## 未来 { #future }
    
    至此,**FastAPI** 及其理念已经为很多人所用。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 4K bytes
    - Click Count (0)
  7. docs/ko/docs/tutorial/first-steps.md

    {* ../../docs_src/first_steps/tutorial001_py310.py hl[1] *}
    
    `FastAPI`는 여러분의 API를 위한 모든 기능을 제공하는 파이썬 클래스입니다.
    
    /// note | 기술 세부사항
    
    `FastAPI`는 `Starlette`를 직접 상속하는 클래스입니다.
    
    `FastAPI`로 [Starlette](https://www.starlette.dev/)의 모든 기능을 사용할 수 있습니다.
    
    ///
    
    ### 2 단계: `FastAPI` "인스턴스" 생성 { #step-2-create-a-fastapi-instance }
    
    {* ../../docs_src/first_steps/tutorial001_py310.py hl[3] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 15K bytes
    - Click Count (0)
  8. docs/zh-hant/docs/history-design-future.md

    一切都是為了讓所有開發者都能擁有最佳的開發體驗。
    
    ## 需求 { #requirements }
    
    在測試多種替代方案後,我決定採用 [**Pydantic**](https://docs.pydantic.dev/),因為它的優勢。
    
    隨後我也對它做出貢獻,使其完全符合 JSON Schema、支援以不同方式定義約束,並依據在多款編輯器中的測試結果改進編輯器支援(型別檢查、自動補全)。
    
    在開發過程中,我也對 [**Starlette**](https://www.starlette.dev/)(另一個關鍵依賴)做出貢獻。
    
    ## 開發 { #development }
    
    當我開始著手實作 **FastAPI** 本身時,多數拼圖已經就緒,設計已定,需求與工具已備齊,對各項標準與規範的理解也清晰且新鮮。
    
    ## 未來 { #future }
    
    到目前為止,**FastAPI** 及其理念已經對許多人有幫助。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  9. docs/ru/docs/tutorial/first-steps.md

    `FastAPI` — это класс на Python, который предоставляет всю функциональность для вашего API.
    
    /// note | Технические детали
    
    `FastAPI` — это класс, который напрямую наследуется от `Starlette`.
    
    Вы можете использовать весь функционал [Starlette](https://www.starlette.dev/) и в `FastAPI`.
    
    ///
    
    ### Шаг 2: создайте экземпляр `FastAPI` { #step-2-create-a-fastapi-instance }
    
    {* ../../docs_src/first_steps/tutorial001_py310.py hl[3] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 18.7K bytes
    - Click Count (0)
  10. docs/en/docs/tutorial/cors.md

    /// note | Technical Details
    
    You could also use `from starlette.middleware.cors import CORSMiddleware`.
    
    **FastAPI** provides several middlewares in `fastapi.middleware` just as a convenience for you, the developer. But most of the available middlewares come directly from Starlette.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 5.2K bytes
    - Click Count (0)
Back to Top