Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 1,967 for respond (0.05 seconds)

  1. 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*.
    
    {* ../../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 19 18:15:55 GMT 2026
    - 1.6K bytes
    - Click Count (0)
  2. docs/ru/docs/advanced/response-change-status-code.md

    При этом вы всё ещё хотите иметь возможность фильтровать и преобразовывать возвращаемые данные с помощью `response_model`.
    
    Для таких случаев вы можете использовать параметр `Response`.
    
    ## Использование параметра `Response` { #use-a-response-parameter }
    
    Вы можете объявить параметр типа `Response` в вашей *функции обработки пути* (как и для cookies и HTTP-заголовков).
    
    И затем вы можете установить `status_code` в этом *временном* объекте ответа.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  3. docs/zh/docs/advanced/response-change-status-code.md

    # 响应 - 更改状态码 { #response-change-status-code }
    
    你可能之前已经了解到,你可以设置默认的[响应状态码](../tutorial/response-status-code.md)。
    
    但在某些情况下,你需要返回一个不同于默认值的状态码。
    
    ## 使用场景 { #use-case }
    
    例如,假设你想默认返回一个HTTP状态码为“OK”`200`。
    
    但如果数据不存在,你想创建它,并返回一个HTTP状态码为“CREATED”`201`。
    
    但你仍然希望能够使用`response_model`过滤和转换你返回的数据。
    
    对于这些情况,你可以使用一个`Response`参数。
    
    ## 使用 `Response` 参数 { #use-a-response-parameter }
    
    你可以在你的*路径操作函数*中声明一个`Response`类型的参数(就像你可以为cookies和头部做的那样)。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 1.5K bytes
    - Click Count (0)
  4. docs/ja/docs/advanced/response-change-status-code.md

    # レスポンス - ステータスコードの変更 { #response-change-status-code }
    
    すでに、デフォルトの[レスポンスのステータスコード](../tutorial/response-status-code.md)を設定できることをご存知かもしれません。
    
    しかし場合によっては、デフォルトとは異なるステータスコードを返す必要があります。
    
    ## ユースケース { #use-case }
    
    たとえば、デフォルトでは HTTP ステータスコード "OK" `200` を返したいとします。
    
    しかし、データが存在しなければそれを作成し、HTTP ステータスコード "CREATED" `201` を返したい。
    
    それでも、返すデータは `response_model` でフィルタ・変換できるようにしておきたい。
    
    そのような場合は `Response` パラメータを使えます。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 2K bytes
    - Click Count (0)
  5. RELEASE.md

    based behaviors you can use `tf.truncatediv` and `tf.truncatemod`. *
    `tf.divide()` is now the recommended division function. `tf.div()` will remain,
    but its semantics do not respond to Python 3 or `from future` mechanisms. *
    tf.reverse() now takes indices of axes to be reversed. E.g. `tf.reverse(a,
    [True, False, True])` must now be written as `tf.reverse(a, [0, 2])`.
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Mon Mar 30 18:31:38 GMT 2026
    - 746.5K bytes
    - Click Count (3)
  6. internal/dsync/lock-args.go

    	Quorum *int `msgp:"omitempty"`
    }
    
    // ResponseCode is the response code for a locking request.
    type ResponseCode uint8
    
    // Response codes for a locking request.
    const (
    	RespOK ResponseCode = iota
    	RespLockConflict
    	RespLockNotInitialized
    	RespLockNotFound
    	RespErr
    )
    
    // LockResp is a locking request response.
    type LockResp struct {
    	Code ResponseCode
    	Err  string
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Jul 24 10:24:01 GMT 2024
    - 1.8K bytes
    - Click Count (0)
  7. docs/iam/identity-management-plugin.md

    | token          | string     | Token from the AssumeRoleWithCustomToken call for external verification |
    
    ### Response
    
    If the token is valid and access is approved, the plugin must return a `200` (OK) HTTP status code.
    
    A `200 OK` Response should have `application/json` content-type and body with the following structure:
    
    ```json
    {
        "user": <string>,
        "maxValiditySeconds": <integer>,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri May 27 00:58:09 GMT 2022
    - 4.2K bytes
    - Click Count (0)
  8. docs/es/docs/tutorial/cors.md

    * `expose_headers` - Indica cualquier header de response que debería ser accesible para el navegador. Por defecto es `[]`.
    * `max_age` - Establece un tiempo máximo en segundos para que los navegadores almacenen en caché los responses CORS. Por defecto es `600`.
    
    El middleware responde a dos tipos particulares de request HTTP...
    
    ### Requests de preflight CORS { #cors-preflight-requests }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  9. docs/es/docs/advanced/security/http-basic-auth.md

    #### El tiempo de respuesta ayuda a los atacantes { #the-time-to-answer-helps-the-attackers }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Stream.kt

      /**
       * Removes and returns the stream's received response headers, blocking if necessary until headers
       * have been received. If the returned list contains multiple blocks of headers the blocks will be
       * delimited by 'null'.
       *
       * @param callerIsIdle true if the caller isn't sending any more bytes until the peer responds.
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jul 07 18:57:05 GMT 2025
    - 22.4K bytes
    - Click Count (0)
Back to Top