Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 204 for defa (0.12 sec)

  1. docs/en/docs/release-notes.md

    ```Python
    def get_current_user(token: str):
        # authenticate user
        return User()
    
    
    @app.get("/items/")
    def read_items(user: User = Depends(get_current_user)):
        ...
    
    
    @app.post("/items/")
    def create_item(*, user: User = Depends(get_current_user), item: Item):
        ...
    
    
    @app.get("/items/{item_id}")
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Sep 05 12:48:45 UTC 2025
    - 544.1K bytes
    - Viewed (0)
  2. docs/en/mkdocs.yml

        - sponsors_badge: ../en/data/sponsors_badge.yml
        - sponsors: ../en/data/sponsors.yml
        - topic_repos: ../en/data/topic_repos.yml
      redirects:
        redirect_maps:
          deployment/deta.md: deployment/cloud.md
          advanced/graphql.md: how-to/graphql.md
          advanced/custom-request-and-route.md: how-to/custom-request-and-route.md
          advanced/conditional-openapi.md: how-to/conditional-openapi.md
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java

        }
    
        private static String getMessage(Throwable error, String def) {
            if (error == null) {
                return def;
            }
            String msg = error.getMessage();
            if (msg != null && !msg.isEmpty()) {
                return msg;
            }
            return getMessage(error.getCause(), def);
        }
    
        private ArtifactRepositoryLayout getLayout(String id) {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 31.2K bytes
    - Viewed (0)
  4. docs/uk/docs/tutorial/first-steps.md

    FastAPI викликатиме її щоразу, коли отримає запит до URL із шляхом "/", використовуючи операцію `GET`.
    
    У даному випадку це асинхронна функція.
    
    ---
    
    Ви також можете визначити її як звичайну функцію замість `async def`:
    
    {* ../../docs_src/first_steps/tutorial003.py hl[7] *}
    
    /// note | Примітка
    
    Якщо не знаєте в чому різниця, подивіться [Конкурентність: *"Поспішаєш?"*](../async.md#in-a-hurry){.internal-link target=_blank}.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/first-steps.md

    {* ../../docs_src/first_steps/tutorial001.py hl[7] *}
    
    👉 🐍 🔢.
    
    ⚫️ 🔜 🤙 **FastAPI** 🕐❔ ⚫️ 📨 📨 📛 "`/`" ⚙️ `GET` 🛠️.
    
    👉 💼, ⚫️ `async` 🔢.
    
    ---
    
    👆 💪 🔬 ⚫️ 😐 🔢 ↩️ `async def`:
    
    {* ../../docs_src/first_steps/tutorial003.py hl[7] *}
    
    /// note
    
    🚥 👆 🚫 💭 🔺, ✅ [🔁: *"🏃 ❓"*](../async.md#_2){.internal-link target=_blank}.
    
    ///
    
    ### 🔁 5️⃣: 📨 🎚
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/request-files.md

    For example, inside of an `async` *path operation function* you can get the contents with:
    
    ```Python
    contents = await myfile.read()
    ```
    
    If you are inside of a normal `def` *path operation function*, you can access the `UploadFile.file` directly, for example:
    
    ```Python
    contents = myfile.file.read()
    ```
    
    /// note | `async` Technical Details
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/request-files.md

    Por exemplo, dentro de uma função de *operação de rota* `assíncrona`, você pode obter o conteúdo com:
    
    ```Python
    contents = await myfile.read()
    ```
    
    Se você estiver dentro de uma função de *operação de rota* normal `def`, você pode acessar o `UploadFile.file` diretamente, por exemplo:
    
    ```Python
    contents = myfile.file.read()
    ```
    
    /// note | Detalhes Técnicos do `async`
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  8. docs/vi/docs/tutorial/first-steps.md

    Trong trường hợp này, nó là một hàm `async`.
    
    ---
    
    Bạn cũng có thể định nghĩa nó như là một hàm thông thường thay cho `async def`:
    
    {* ../../docs_src/first_steps/tutorial003.py hl[7] *}
    
    /// note
    
    Nếu bạn không biết sự khác nhau, kiểm tra [Async: *"Trong khi vội vàng?"*](../async.md#in-a-hurry){.internal-link target=_blank}.
    
    ///
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Nov 10 16:58:43 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt

        clientListener.assertOpen()
        val server = serverListener.assertOpen()
        webSocket.send("abc")
        serverListener.assertTextMessage("abc")
        server.send("def")
        clientListener.assertTextMessage("def")
        closeWebSockets(webSocket, server)
      }
    
      @Test
      @Throws(IOException::class)
      fun missingConnectionHeader() {
        webServer.enqueue(
          MockResponse
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  10. docs/tr/docs/tutorial/first-steps.md

    Bu fonksiyon bir `GET` işlemi kullanılarak "`/`" bağlantısına bir istek geldiğinde **FastAPI** tarafından çağrılır.
    
    Bu durumda bu fonksiyon bir `async` fonksiyondur.
    
    ---
    
    Bu fonksiyonu `async def` yerine normal bir fonksiyon olarak da tanımlayabilirsiniz.
    
    {* ../../docs_src/first_steps/tutorial003.py hl[7] *}
    
    /// note | Not
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top