Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 139 for ASGI (0.04 seconds)

  1. docs/ko/docs/how-to/custom-request-and-route.md

    /// note | 기술 세부사항
    
    `Request`에는 `request.scope` 속성이 있는데, 이는 요청과 관련된 메타데이터를 담고 있는 Python `dict`입니다.
    
    `Request`에는 또한 `request.receive`가 있는데, 이는 요청의 바디를 "받기(receive)" 위한 함수입니다.
    
    `scope` `dict`와 `receive` 함수는 모두 ASGI 명세의 일부입니다.
    
    그리고 이 두 가지, `scope`와 `receive`가 새로운 `Request` 인스턴스를 만드는 데 필요한 것들입니다.
    
    `Request`에 대해 더 알아보려면 [Starlette의 Requests 문서](https://www.starlette.dev/requests/)를 확인하세요.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  2. docs/ko/docs/fastapi-cli.md

    ```
    
    </div>
    
    /// tip | 팁
    
    프로덕션에서는 `fastapi dev` 대신 `fastapi run`을 사용합니다. 🚀
    
    ///
    
    내부적으로 **FastAPI CLI**는 고성능의, 프로덕션에 적합한 ASGI 서버인 [Uvicorn](https://www.uvicorn.dev)을 사용합니다. 😎
    
    `fastapi` CLI는 기본적으로 실행할 FastAPI 앱을 자동으로 감지하려고 시도합니다. `main.py` 파일 안의 `app`이라는 객체(또는 몇 가지 변형)가 있다고 가정합니다.
    
    하지만 사용할 앱을 명시적으로 구성할 수도 있습니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  3. docs/en/docs/how-to/custom-request-and-route.md

    A `Request` also has a `request.receive`, that's a function to "receive" the body of the request.
    
    The `scope` `dict` and `receive` function are both part of the ASGI specification.
    
    And those two things, `scope` and `receive`, are what is needed to create a new `Request` instance.
    
    To learn more about the `Request` check [Starlette's docs about Requests](https://www.starlette.dev/requests/).
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  4. docs/en/docs/fastapi-cli.md

    ```
    
    </div>
    
    /// tip
    
    For production you would use `fastapi run` instead of `fastapi dev`. 🚀
    
    ///
    
    Internally, **FastAPI CLI** uses [Uvicorn](https://www.uvicorn.dev), a high-performance, production-ready, ASGI server. 😎
    
    The `fastapi` CLI will try to detect automatically the FastAPI app to run, assuming it's an object called `app` in a file `main.py` (or a couple other variants).
    
    But you can configure explicitly the app to use.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  5. docs/zh/docs/advanced/behind-a-proxy.md

    ```
    
    </div>
    
    如果你使用 Hypercorn,它也有 `--root-path` 选项。
    
    /// note | 技术细节
    
    ASGI 规范为这种用例定义了 `root_path`。
    
    命令行选项 `--root-path` 会提供该 `root_path`。
    
    ///
    
    ### 查看当前的 `root_path` { #checking-the-current-root-path }
    
    你可以获取应用在每个请求中使用的当前 `root_path`,它是 `scope` 字典的一部分(ASGI 规范的一部分)。
    
    这里我们把它包含在响应消息中仅用于演示。
    
    {* ../../docs_src/behind_a_proxy/tutorial001_py310.py hl[8] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 15.1K bytes
    - Click Count (0)
  6. docs/zh/docs/benchmarks.md

    ## 基准测试和速度 { #benchmarks-and-speed }
    
    当你查看基准测试时,几个不同类型的工具被等效地做比较是很常见的情况。
    
    具体来说,是将 Uvicorn,Starlette 和 FastAPI 一起比较(在许多其它工具中)。
    
    该工具解决的问题最简单,它将获得更好的性能。而且大多数基准测试并未测试该工具提供的其他功能。
    
    层次结构如下:
    
    * **Uvicorn**:ASGI服务器
        * **Starlette**:(使用 Uvicorn)网络微框架
            * **FastAPI**:(使用 Starlette) 具有多个附加功能的API微框架,用于构建API,进行数据验证等。
    
    * **Uvicorn**:
        * 具有最佳性能,因为除了服务器本身外,它没有太多额外的代码。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  7. docs/zh-hant/docs/benchmarks.md

    但是在查看基準得分和對比時,請注意以下幾點。
    
    ## 基準測試和速度 { #benchmarks-and-speed }
    
    當你查看基準測試時,常見到不同類型的多個工具被視為等同來比較。
    
    具體來說,是將 Uvicorn、Starlette 和 FastAPI 同時進行比較(以及許多其他工具)。
    
    該工具解決的問題越簡單,其效能就越好。而且大多數基準測試不會測試該工具提供的附加功能。
    
    層次結構如下:
    
    * **Uvicorn**:ASGI 伺服器
        * **Starlette**:(使用 Uvicorn)一個網頁微框架
            * **FastAPI**:(使用 Starlette)一個 API 微框架,具有用於建立 API 的多個附加功能、資料驗證等。
    
    * **Uvicorn**:
        * 具有最佳效能,因為除了伺服器本身之外,它沒有太多額外的程式碼。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  8. docs/ja/docs/alternatives.md

    /// note | 技術詳細
    
    ASGIはDjangoのコアチームメンバーにより開発された新しい「標準」です。まだ「Pythonの標準 (PEP) 」ではありませんが、現在そうなるように進めています。
    
    しかしながら、いくつかのツールにおいてすでに「標準」として利用されています。このことは互換性を大きく改善するもので、Uvicornから他のASGIサーバー (DaphneやHypercorn) に乗り換えることができたり、あなたが`python-socketio`のようなASGI互換のツールを追加することもできます。
    
    ///
    
    /// check | **FastAPI**での使用用途
    
    webに関するコアな部分を全て扱います。その上に機能を追加します。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 30.6K bytes
    - Click Count (0)
  9. docs/en/docs/advanced/events.md

    ## Technical Details { #technical-details }
    
    Just a technical detail for the curious nerds. 🤓
    
    Underneath, in the ASGI technical specification, this is part of the [Lifespan Protocol](https://asgi.readthedocs.io/en/latest/specs/lifespan.html), and it defines events called `startup` and `shutdown`.
    
    /// info
    
    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)
  10. docs/zh-hant/docs/how-to/custom-request-and-route.md

    /// note | 技術細節
    
    `Request` 具有 `request.scope` 屬性,它其實就是一個 Python 的 `dict`,包含與該請求相關的中繼資料。
    
    `Request` 也有 `request.receive`,那是一個用來「接收」請求本文的函式。
    
    `scope` 這個 `dict` 與 `receive` 函式都是 ASGI 規格的一部分。
    
    而 `scope` 與 `receive` 這兩者,就是建立一個新的 `Request` 實例所需的資料。
    
    想了解更多 `Request`,請參考 [Starlette 的 Request 文件](https://www.starlette.dev/requests/)。
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 4.2K bytes
    - Click Count (0)
Back to Top