Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 638 for tipy (0.02 sec)

  1. docs/ru/docs/advanced/async-tests.md

    ```
    
    </div>
    
    ## Подробнее { #in-detail }
    
    Маркер `@pytest.mark.anyio` говорит pytest, что тестовая функция должна быть вызвана асинхронно:
    
    {* ../../docs_src/async_tests/app_a_py39/test_main.py hl[7] *}
    
    /// tip | Подсказка
    
    Обратите внимание, что тестовая функция теперь `async def` вместо простого `def`, как это было при использовании `TestClient`.
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md

    # 使用yield的依赖项
    
    FastAPI支持在完成后执行一些<abbr title='有时也被称为"退出"("exit"),"清理"("cleanup"),"拆卸"("teardown"),"关闭"("close"),"上下文管理器"("context managers")。 ...'>额外步骤</abbr>的依赖项.
    
    为此,你需要使用 `yield` 而不是 `return`,然后再编写这些额外的步骤(代码)。
    
    /// tip | 提示
    
    确保在每个依赖中只使用一次 `yield`。
    
    ///
    
    /// note | 技术细节
    
    任何一个可以与以下内容一起使用的函数:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  3. docs/pt/docs/advanced/behind-a-proxy.md

        }
    }
    ```
    
    /// tip | Dica
    
    Perceba o servidor gerado automaticamente com um valor `url` de `/api/v1`, retirado do `root_path`.
    
    ///
    
    Na interface de documentação em <a href="http://127.0.0.1:9999/api/v1/docs" class="external-link" target="_blank">http://127.0.0.1:9999/api/v1/docs</a> parecerá:
    
    <img src="/img/tutorial/behind-a-proxy/image03.png">
    
    /// tip | Dica
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  4. internal/http/check_port_others.go

    	"net"
    	"time"
    )
    
    // CheckPortAvailability - check if given host and port is already in use.
    // Note: The check method tries to listen on given port and closes it.
    // It is possible to have a disconnected client in this tiny window of time.
    func CheckPortAvailability(host, port string, opts TCPOptions) (err error) {
    	lc := &net.ListenConfig{}
    
    	ctx, cancel := context.WithTimeout(context.Background(), time.Second)
    	defer cancel()
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed May 03 21:12:25 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  5. docs/es/docs/advanced/response-change-status-code.md

    Para esos casos, puedes usar un parámetro `Response`.
    
    ## Usa un parámetro `Response` { #use-a-response-parameter }
    
    Puedes declarar un parámetro de tipo `Response` en tu *path operation function* (como puedes hacer para cookies y headers).
    
    Y luego puedes establecer el `status_code` en ese objeto de response *temporal*.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  6. docs/es/docs/deployment/index.md

    Te mostraré algunos de los conceptos principales que probablemente deberías tener en cuenta al desplegar una aplicación **FastAPI** (aunque la mayoría se aplica a cualquier otro tipo de aplicación web).
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/testing.md

    ```
    
    ////
    
    //// tab | Python 3.10+ non-Annotated
    
    /// tip | 팁
    
    될 수 있으면 `Annotated` 버전 사용을 권장합나다.
    
    ///
    
    ```Python
    {!> ../../docs_src/app_testing/app_b_py310/main.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+ non-Annotated
    
    /// tip | 팁
    
    될 수 있으면 `Annotated` 버전 사용을 권장합나다.
    
    ///
    
    ```Python
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  8. docs/zh/docs/advanced/async-tests.md

    {* ../../docs_src/async_tests/test_main.py hl[7] *}
    
    /// tip
    
    请注意,测试函数现在用的是 `async def`,而不是像以前使用 `TestClient` 时那样只是 `def` 。
    
    ///
    
    我们现在可以使用应用程序创建一个 `AsyncClient` ,并使用 `await` 向其发送异步请求。
    
    {* ../../docs_src/async_tests/test_main.py hl[9:12] *}
    
    这相当于:
    
    ```Python
    response = client.get('/')
    ```
    
    我们曾经通过它向 `TestClient` 发出请求。
    
    /// tip
    
    请注意,我们正在将 async/await 与新的 `AsyncClient` 一起使用——请求是异步的。
    
    ///
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 17 21:49:06 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/security/simple-oauth2.md

    /// tip
    
    In the next chapter, you will see a real secure implementation, with password hashing and <abbr title="JSON Web Tokens">JWT</abbr> tokens.
    
    But for now, let's focus on the specific details we need.
    
    ///
    
    {* ../../docs_src/security/tutorial003_an_py310.py hl[87] *}
    
    /// tip
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  10. docs/zh/docs/advanced/behind-a-proxy.md

        "paths": {
                // More stuff here
        }
    }
    ```
    
    /// tip | 提示
    
    注意,自动生成服务器时,`url` 的值 `/api/v1` 提取自 `roog_path`。
    
    ///
    
    <a href="http://127.0.0.1:9999/api/v1/docs" class="external-link" target="_blank">http://127.0.0.1:9999/api/v1/docs 的 API 文档所示如下:</a>
    
    <img src="/img/tutorial/behind-a-proxy/image03.png">
    
    /// tip | 提示
    
    API 文档与所选的服务器进行交互。
    
    ///
    
    ### 从 `root_path` 禁用自动服务器
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top