Search Options

Results per page
Sort
Preferred Languages
Advance

Results 281 - 290 of 337 for starlette (0.1 sec)

  1. tests/test_ws_router.py

                pass  # pragma: no cover
        assert e.value.code == status.WS_1000_NORMAL_CLOSURE
    
    
    def websocket_middleware(middleware_func):
        """
        Helper to create a Starlette pure websocket middleware
        """
    
        def middleware_constructor(app):
            @functools.wraps(app)
            async def wrapped_app(scope, receive, send):
                if scope["type"] != "websocket":
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Jun 11 19:08:14 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  2. docs/ru/docs/async.md

    и на уровне с Go, который является компилируемым языком близким к C <a href="https://www.techempower.com/benchmarks/#section=data-r17&hw=ph&test=query&l=zijmkf-1" class="external-link" target="_blank">(всё благодаря Starlette)</a>.
    
    ### Получается, конкурентность лучше параллелизма?
    
    Нет! Мораль истории совсем не в этом.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 39.9K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/path-params.md

    此时,该文件的 URL 是这样的:`/files/home/johndoe/myfile.txt`。
    
    ### OpenAPI 支持
    
    OpenAPI 不支持声明包含路径的*路径参数*,因为这会导致测试和定义更加困难。
    
    不过,仍可使用 Starlette 内置工具在 **FastAPI** 中实现这一功能。
    
    而且不影响文档正常运行,但是不会添加该参数包含路径的说明。
    
    ### 路径转换器
    
    直接使用 Starlette 的选项声明包含*路径*的*路径参数*:
    
    ```
    /files/{file_path:path}
    ```
    
    本例中,参数名为 `file_path`,结尾部分的 `:path` 说明该参数应匹配*路径*。
    
    用法如下:
    
    ```Python hl_lines="6"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. docs/tr/docs/tutorial/path-params.md

    Ancak bunu, Starlette kütüphanesinin dahili araçlarından birini kullanarak **FastAPI**'da gerçekleştirebilirsiniz.
    
    Parametrenin bir yol içermesi gerektiğini belirten herhangi bir doküman eklemememize rağmen dokümanlar yine de çalışacaktır.
    
    ### Yol Dönüştürücü
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  5. fastapi/security/oauth2.py

    from fastapi.param_functions import Form
    from fastapi.security.base import SecurityBase
    from fastapi.security.utils import get_authorization_scheme_param
    from starlette.requests import Request
    from starlette.status import HTTP_401_UNAUTHORIZED, HTTP_403_FORBIDDEN
    
    # TODO: import from typing when deprecating Python 3.9
    from typing_extensions import Annotated, Doc
    
    
    class OAuth2PasswordRequestForm:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 23 18:30:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  6. docs/ja/docs/help-fastapi.md

    そこで、感謝の気持ちを伝えるためにコーヒー☕️を買うことができます 😄。
    
    ## FastAPIを強化するツールのスポンサーになる
    
    ドキュメントで見たように、FastAPIはStarletteとPydanticという巨人の肩に乗っています。
    
    以下のスポンサーになることもできます:
    
    * <a href="https://github.com/sponsors/samuelcolvin" class="external-link" target="_blank">Samuel Colvin (Pydantic)</a>
    * <a href="https://github.com/sponsors/encode" class="external-link" target="_blank">Encode (Starlette, Uvicorn)</a>
    
    ---
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Jul 29 23:35:07 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. docs/pt/docs/help-fastapi.md

    Como você viu na documentação, o FastAPI se apoia em nos gigantes, Starlette e Pydantic.
    
    Patrocine também:
    
    * <a href="https://github.com/sponsors/samuelcolvin" class="external-link" target="_blank">Samuel Colvin (Pydantic)</a>
    * <a href="https://github.com/sponsors/encode" class="external-link" target="_blank">Encode (Starlette, Uvicorn)</a>
    
    ---
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/path-params.md

    No entanto, você pode fazer isso no **FastAPI**, usando uma das ferramentas internas do Starlette.
    
    A documentação continuaria funcionando, ainda que não adicionaria nenhuma informação dizendo que o parâmetro deveria conter uma rota.
    
    ### Conversor de rota
    
    Usando uma opção direta do Starlette você pode declarar um *parâmetro de rota* contendo uma *rota* usando uma URL como:
    
    ```
    /files/{file_path:path}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  9. docs/de/docs/deployment/manually.md

    Sie hilft sehr während der **Entwicklung**, aber Sie sollten sie **nicht** in der **Produktion** verwenden.
    
    ///
    
    ## Hypercorn mit Trio
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  10. docs/en/docs/how-to/custom-request-and-route.md

    And those two things, `scope` and `receive`, are what is needed to create a new `Request` instance.
    
    To learn more about the `Request` check <a href="https://www.starlette.io/requests/" class="external-link" target="_blank">Starlette's docs about Requests</a>.
    
    ///
    
    The only thing the function returned by `GzipRequest.get_route_handler` does differently is convert the `Request` to a `GzipRequest`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 22:39:38 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top