Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 204 for defa (0.15 sec)

  1. docs/de/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+ nicht annotiert
    
    /// tip | Tipp
    
    Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
    ///
    
    ```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
    - 4.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

        }
    
        @Override
        public int getHeaderFieldInt(final String header, final int def) {
            try {
                handshake();
            } catch (final IOException ex) {}
            return connection.getHeaderFieldInt(header, def);
        }
    
        @Override
        public long getHeaderFieldDate(final String header, final long def) {
            try {
                handshake();
            } catch (final IOException ex) {}
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

          Request(
            url = server.url("/"),
            body = "def".toRequestBody("text/plain".toMediaType()),
          )
        executeSynchronously(request)
          .assertCode(200)
          .assertBody("abc")
        val recordedRequest = server.takeRequest()
        assertThat(recordedRequest.method).isEqualTo("POST")
        assertThat(recordedRequest.body?.utf8()).isEqualTo("def")
        assertThat(recordedRequest.headers["Content-Length"]).isEqualTo("3")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
  4. docs/tr/docs/index.md

    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    ```
    
    <details markdown="1">
    <summary>Ya da <code>async def</code>...</summary>
    
    Eğer kodunuzda `async` / `await` varsa, `async def` kullanalım:
    
    ```Python hl_lines="9  14"
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  5. docs/ja/docs/tutorial/background-tasks.md

    **FastAPI** は、`BackgroundTasks` 型のオブジェクトを作成し、そのパラメーターに渡します。
    
    ## タスク関数の作成
    
    バックグラウンドタスクとして実行される関数を作成します。
    
    これは、パラメーターを受け取ることができる単なる標準的な関数です。
    
    これは `async def` または通常の `def` 関数であり、**FastAPI** はこれを正しく処理します。
    
    ここで、タスク関数はファイル書き込みを実行します (メール送信のシミュレーション)。
    
    また、書き込み操作では `async` と `await` を使用しないため、通常の `def` で関数を定義します。
    
    {* ../../docs_src/background_tasks/tutorial001.py hl[6:9] *}
    
    ## バックグラウンドタスクの追加
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/HeadersJvmTest.kt

        assertThat(Headers.EMPTY.byteCount()).isEqualTo(0L)
        assertThat(
          Headers
            .Builder()
            .add("abc", "def")
            .build()
            .byteCount(),
        ).isEqualTo(10L)
        assertThat(
          Headers
            .Builder()
            .add("abc", "def")
            .add("ghi", "jkl")
            .build()
            .byteCount(),
        ).isEqualTo(20L)
      }
    
      @Test fun addDate() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:25 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  7. docs/en/docs/index.md

    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    ```
    
    <details markdown="1">
    <summary>Or use <code>async def</code>...</summary>
    
    If your code uses `async` / `await`, use `async def`:
    
    ```Python hl_lines="9  14"
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 21.3K bytes
    - Viewed (0)
  8. docs/pt/docs/advanced/custom-response.md

    ///
    
    ### `Response`
    
    A classe principal de respostas, todas as outras respostas herdam dela.
    
    Você pode retorná-la diretamente.
    
    Ela aceita os seguintes parâmetros:
    
    * `content` - Uma sequência de caracteres (`str`) ou `bytes`.
    * `status_code` - Um código de status HTTP do tipo `int`.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/background-tasks.md

    It is just a standard function that can receive parameters.
    
    It can be an `async def` or normal `def` function, **FastAPI** will know how to handle it correctly.
    
    In this case, the task function will write to a file (simulating sending an email).
    
    And as the write operation doesn't use `async` and `await`, we define the function with normal `def`:
    
    {* ../../docs_src/background_tasks/tutorial001.py hl[6:9] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/background-tasks.md

    É apenas uma função padrão que pode receber parâmetros.
    
    Pode ser uma função `async def` ou `def` normal, o **FastAPI** saberá como lidar com isso corretamente.
    
    Nesse caso, a função de tarefa gravará em um arquivo (simulando o envio de um e-mail).
    
    E como a operação de gravação não usa `async` e `await`, definimos a função com `def` normal:
    
    {* ../../docs_src/background_tasks/tutorial001.py hl[6:9] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Nov 10 17:23:38 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top