Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 262 for asgi (0.02 seconds)

  1. 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)
  2. 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)
  3. docs/zh-hant/docs/advanced/sub-applications.md

    <img src="/img/tutorial/sub-applications/image02.png">
    
    如果你嘗試在任一介面中互動,它們都會正常運作,因為瀏覽器能與各自的應用程式或子應用程式通訊。
    
    ### 技術細節:`root_path` { #technical-details-root-path }
    
    當你像上面那樣掛載子應用程式時,FastAPI 會使用 ASGI 規範中的一個機制 `root_path`,將子應用程式的掛載路徑告知它。
    
    如此一來,子應用程式就會知道在文件 UI 使用該路徑前綴。
    
    而且子應用程式也能再掛載自己的子應用程式,一切都能正確運作,因為 FastAPI 會自動處理所有這些 `root_path`。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  4. 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)
  5. 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)
  6. 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)
  7. docs/en/docs/advanced/behind-a-proxy.md

    /// note | Technical Details
    
    The ASGI specification defines a `root_path` for this use case.
    
    And the `--root-path` command line option provides that `root_path`.
    
    ///
    
    ### Checking the current `root_path` { #checking-the-current-root-path }
    
    You can get the current `root_path` used by your application for each request, it is part of the `scope` dictionary (that's part of the ASGI spec).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 15.8K bytes
    - Click Count (0)
  8. 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)
  9. 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)
  10. docs/ja/docs/benchmarks.md

    具体的には、Uvicorn、Starlette、FastAPIを(他の多くのツールの中で)まとめて比較しているのを目にすることがあります。
    
    ツールで解決する問題がシンプルなほど、パフォーマンスが向上します。また、ほとんどのベンチマークは、ツールから提供される追加機能をテストしていません。
    
    階層関係はこのようになります。
    
    * **Uvicorn**: ASGIサーバー
        * **Starlette**: (Uvicornを使用)webマイクロフレームワーク
            * **FastAPI**: (Starletteを使用)データバリデーションなど、APIを構築するためのいくつかの追加機能を備えたAPIマイクロフレームワーク
    
    * **Uvicorn**:
        * サーバー自体以外に余分なコードがあまりないため、最高のパフォーマンスになります。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 4.9K bytes
    - Click Count (0)
Back to Top