Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 111 - 120 of 1,934 for Response_ (0.05 seconds)

  1. docs/fr/docs/tutorial/response-status-code.md

    # Code d'état de la réponse { #response-status-code }
    
    De la même manière que vous pouvez spécifier un modèle de réponse, vous pouvez également déclarer le code d'état HTTP utilisé pour la réponse avec le paramètre `status_code` dans n'importe lequel des chemins d'accès :
    
    * `@app.get()`
    * `@app.post()`
    * `@app.put()`
    * `@app.delete()`
    * etc.
    
    {* ../../docs_src/response_status_code/tutorial001_py310.py hl[6] *}
    
    /// note | Remarque
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  2. docs/ru/docs/tutorial/response-status-code.md

    # Статус-код ответа { #response-status-code }
    
    Подобно тому, как вы можете задать модель/схему ответа, вы можете объявить HTTP статус-код, используемый для ответа, с помощью параметра `status_code` в любой из *операций пути*:
    
    * `@app.get()`
    * `@app.post()`
    * `@app.put()`
    * `@app.delete()`
    * и других.
    
    {* ../../docs_src/response_status_code/tutorial001_py310.py hl[6] *}
    
    /// note | Примечание
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 7K bytes
    - Click Count (0)
  3. docs/zh/docs/tutorial/response-status-code.md

    这只是一种快捷方式,具有相同的数字代码,但它可以使用编辑器的自动补全功能:
    
    <img src="/img/tutorial/response-status-code/image02.png">
    
    /// note | 技术细节
    
    也可以使用 `from starlette import status`。
    
    为了让开发者更方便,**FastAPI** 提供了与 `starlette.status` 完全相同的 `fastapi.status`。但它直接来自于 Starlette。
    
    ///
    
    ## 更改默认状态码 { #changing-the-default }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

          val code = response.code
          if (code != HTTP_TEMP_REDIRECT && code != HTTP_PERM_REDIRECT) return response
          val method = response.request.method
          if (method == "GET" || method == "HEAD") return response
          val location = response.header("Location") ?: return response
          return response
            .newBuilder()
            .removeHeader("Location")
            .header("LegacyRedirectInterceptor-Location", location)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 133.3K bytes
    - Click Count (0)
  5. docs/ko/docs/tutorial/response-status-code.md

    <img src="/img/tutorial/response-status-code/image02.png">
    
    /// note | 기술 세부사항
    
    `from starlette import status` 역시 사용할 수 있습니다.
    
    **FastAPI**는 개발자인 여러분의 편의를 위해 `fastapi.status` 와 동일한 `starlette.status` 도 제공합니다. 하지만 이것은 Starlette로부터 직접 제공됩니다.
    
    ///
    
    ## 기본값 변경 { #changing-the-default }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  6. docs/uk/docs/advanced/response-change-status-code.md

    Водночас ви все одно хочете мати змогу фільтрувати та перетворювати повернені дані за допомогою `response_model`.
    
    Для таких випадків ви можете використати параметр `Response`.
    
    ## Використовуйте параметр `Response` { #use-a-response-parameter }
    
    Ви можете оголосити параметр типу `Response` у своїй функції операції шляху (так само, як для кукі та заголовків).
    
    Потім ви можете встановити `status_code` у цьому *тимчасовому* об'єкті відповіді.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

              .build(),
          )
        var response = call.execute()
        assertThat(response.code).isEqualTo(200)
        response.close()
        eventRecorder.clearAllEvents()
        call = call.cloneWithListener()
        response = call.execute()
        assertThat(response.code).isEqualTo(200)
        assertThat(response.body.string()).isEqualTo("abc")
        response.close()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 70.7K bytes
    - Click Count (0)
  8. docs/en/docs/advanced/response-change-status-code.md

    For those cases, you can use a `Response` parameter.
    
    ## Use a `Response` parameter { #use-a-response-parameter }
    
    You can declare a parameter of type `Response` in your *path operation function* (as you can do for cookies and headers).
    
    And then you can set the `status_code` in that *temporal* response object.
    
    {* ../../docs_src/response_change_status_code/tutorial001_py310.py hl[1,9,12] *}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 1.5K bytes
    - Click Count (0)
  9. docs/ja/docs/tutorial/response-status-code.md

    <img src="/img/tutorial/response-status-code/image02.png">
    
    /// note | 技術詳細
    
    また、`from starlette import status`を使うこともできます。
    
    **FastAPI** は、開発者の利便性を考慮して、fastapi.statusと同じ`starlette.status`を提供しています。しかし、これはStarletteから直接提供されています。
    
    ///
    
    ## デフォルトの変更 { #changing-the-default }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  10. docs/fr/docs/advanced/response-change-status-code.md

    Mais vous souhaitez toujours pouvoir filtrer et convertir les données que vous renvoyez avec un `response_model`.
    
    Pour ces cas, vous pouvez utiliser un paramètre `Response`.
    
    ## Utiliser un paramètre `Response` { #use-a-response-parameter }
    
    Vous pouvez déclarer un paramètre de type `Response` dans votre fonction de chemin d'accès (comme vous pouvez le faire pour les cookies et les en-têtes).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 1.8K bytes
    - Click Count (0)
Back to Top