Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 159 for fdef (0.02 sec)

  1. docs/ru/docs/tutorial/first-steps.md

    **FastAPI** будет вызывать её каждый раз при получении `GET` запроса к URL "`/`".
    
    В данном случае это асинхронная функция.
    
    ---
    
    Вы также можете определить ее как обычную функцию вместо `async def`:
    
    {* ../../docs_src/first_steps/tutorial003.py hl[7] *}
    
    /// note | Технические детали
    
    Если не знаете в чём разница, посмотрите [Конкурентность: *"Нет времени?"*](../async.md#_1){.internal-link target=_blank}.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/dependencies/sub-dependencies.md

    //// tab | Python 3.8+
    
    ```Python hl_lines="1"
    async def needy_dependency(fresh_value: Annotated[str, Depends(get_value, use_cache=False)]):
        return {"fresh_value": fresh_value}
    ```
    
    ////
    
    //// tab | Python 3.8+ non-Annotated
    
    /// tip | Dica
    
    Utilize a versão com `Annotated` se possível.
    
    ///
    
    ```Python hl_lines="1"
    async def needy_dependency(fresh_value: str = Depends(get_value, use_cache=False)):
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/testing.md

    ⚙️ `TestClient` 🎚 🎏 🌌 👆 ⏮️ `httpx`.
    
    ✍ 🙅 `assert` 📄 ⏮️ 🐩 🐍 🧬 👈 👆 💪 ✅ (🔄, 🐩 `pytest`).
    
    {* ../../docs_src/app_testing/tutorial001.py hl[2,12,15:18] *}
    
    /// tip
    
    👀 👈 🔬 🔢 😐 `def`, 🚫 `async def`.
    
     & 🤙 👩‍💻 😐 🤙, 🚫 ⚙️ `await`.
    
    👉 ✔ 👆 ⚙️ `pytest` 🔗 🍵 🤢.
    
    ///
    
    /// note | 📡 ℹ
    
    👆 💪 ⚙️ `from starlette.testclient import TestClient`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. docs/ko/docs/advanced/events.md

    이 부분은 건너뛰셔도 좋습니다.
    
    ///
    
    *시작*과 *종료* 동안 실행될 이 로직을 정의하는 대체 방법이 있습니다.
    
    애플리케이션이 시작되기 전에 또는 종료될 때 실행해야 하는 이벤트 핸들러(함수)를 정의할 수 있습니다.
    
    이 함수들은 `async def` 또는 일반 `def`로 선언할 수 있습니다.
    
    ### `startup` 이벤트
    
    애플리케이션이 시작되기 전에 실행되어야 하는 함수를 추가하려면, `"startup"` 이벤트로 선언합니다:
    
    {* ../../docs_src/events/tutorial001.py hl[8] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri May 30 13:33:53 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  5. docs/ko/docs/tutorial/testing.md

    표준적인 파이썬 문법을 이용하여 확인이 필요한 곳에 간단한 `assert` 문장을 작성하세요(역시 표준적인 `pytest` 관례입니다).
    
    {* ../../docs_src/app_testing/tutorial001.py hl[2,12,15:18] *}
    
    /// tip | 팁
    
    테스트를 위한 함수는 `async def` 가 아니라 `def` 로 작성됨에 주의하세요.
    
    그리고 클라이언트에 대한 호출도 `await` 를 사용하지 않는 일반 호출입니다.
    
    이렇게 하여 복잡한 과정 없이 `pytest` 를 직접적으로 사용할 수 있습니다.
    
    ///
    
    /// note | 기술 세부사항
    
    `from starlette.testclient import TestClient` 역시 사용할 수 있습니다.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Dec 10 11:24:48 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. docs/extensions/s3zip/examples/boto3/main.py

            aws_access_key_id='YOUR-ACCESSKEYID',
            aws_secret_access_key='YOUR-SECRETACCESSKEY',
            config=Config(signature_version='s3v4'),
            region_name='us-east-1')
    
    
    def _add_header(request, **kwargs):
        request.headers.add_header('x-minio-extract', 'true')
    event_system = s3.meta.events
    event_system.register_first('before-sign.s3.*', _add_header)
    
    # List zip contents
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Aug 04 21:15:45 UTC 2021
    - 771 bytes
    - Viewed (0)
  7. src/main/java/jcifs/http/NtlmHttpURLConnection.java

        @Override
        public int getHeaderFieldInt(final String header, final int def) {
            handshake();
            return this.connection.getHeaderFieldInt(header, def);
        }
    
        @Override
        public long getHeaderFieldDate(final String header, final long def) {
            handshake();
            return this.connection.getHeaderFieldDate(header, def);
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/testing.md

    {* ../../docs_src/app_testing/tutorial001.py hl[2,12,15:18] *}
    
    /// tip | Tipp
    
    Beachten Sie, dass die Testfunktionen normal `def` und nicht `async def` sind.
    
    Und die Anrufe an den Client sind ebenfalls normale Anrufe, die nicht `await` verwenden.
    
    Dadurch können Sie `pytest` ohne Komplikationen direkt nutzen.
    
    ///
    
    /// note | Technische Details
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/testing.md

    {* ../../docs_src/app_testing/tutorial001.py hl[2,12,15:18] *}
    
    /// tip | Подсказка
    
    Обратите внимание, что тестирующая функция является обычной `def`, а не асинхронной `async def`.
    
    И вызов клиента также осуществляется без `await`.
    
    Это позволяет вам использовать `pytest` без лишних усложнений.
    
    ///
    
    /// note | Технические детали
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  10. docs/es/docs/tutorial/testing.md

    {* ../../docs_src/app_testing/tutorial001.py hl[2,12,15:18] *}
    
    /// tip | Consejo
    
    Nota que las funciones de prueba son `def` normales, no `async def`.
    
    Y las llamadas al cliente también son llamadas normales, sin usar `await`.
    
    Esto te permite usar `pytest` directamente sin complicaciones.
    
    ///
    
    /// note | Nota Técnica
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top