Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 180 for body (0.13 sec)

  1. docs/en/docs/how-to/custom-request-and-route.md

    But because of our changes in `GzipRequest.body`, the request body will be automatically decompressed when it is loaded by **FastAPI** when needed.
    
    ## Accessing the request body in an exception handler
    
    !!! tip
        To solve this same problem, it's probably a lot easier to use the `body` in a custom handler for `RequestValidationError` ([Handling Errors](../tutorial/handling-errors.md#use-the-requestvalidationerror-body){.internal-link target=_blank}).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt

          """.trimMargin(),
        )
      }
    
      override fun timeout() = Timeout.NONE
    
      override fun close() {
      }
    }
    
    fun Response.stripBody(): Response {
      return newBuilder()
        .body(UnreadableResponseBody(body.contentType(), body.contentLength()))
        .build()
    }
    
    val Response.commonIsSuccessful: Boolean
      get() = code in 200..299
    
    fun Response.commonHeaders(name: String): List<String> = headers.values(name)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  3. docs/de/docs/advanced/openapi-callbacks.md

    ```
    https://www.external.org/events/invoices/2expen51ve
    ```
    
    mit einem JSON-Body, der etwa Folgendes enthält:
    
    ```JSON
    {
        "description": "Payment celebration",
        "paid": true
    }
    ```
    
    und sie würde eine Response von dieser *externen API* mit einem JSON-Body wie dem folgenden erwarten:
    
    ```JSON
    {
        "ok": true
    }
    ```
    
    !!! tip "Tipp"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:17:23 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  4. docs/pt/docs/tutorial/handling-errors.md

    
    ### Use o body do `RequestValidationError`.
    
    O `RequestValidationError` contém o `body` que ele recebeu de dados inválidos.
    
    Você pode utilizá-lo enquanto desenvolve seu app para conectar o *body* e debugá-lo, e assim retorná-lo ao usuário, etc.
    
    Tente enviar um item inválido como este:
    
    ```JSON
    {
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/request-forms.md

    Com `Form` você pode declarar os mesmos metadados e validação que com `Body` (e `Query`, `Path`, `Cookie`).
    
    !!! info "Informação"
        `Form` é uma classe que herda diretamente de `Body`.
    
    !!! tip "Dica"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  6. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

        val body = response.body ?: return
        sleepNanos(response.bodyDelayNanos)
        val responseBodySink =
          sink.withThrottlingAndSocketPolicy(
            policy = response,
            disconnectHalfway = response.socketPolicy == DisconnectDuringResponseBody,
            expectedByteCount = body.contentLength,
            socket = socket,
          ).buffer()
        body.writeTo(responseBodySink)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/request-forms.md

    With `Form` you can declare the same configurations as with `Body` (and `Query`, `Path`, `Cookie`), including validation, examples, an alias (e.g. `user-name` instead of `username`), etc.
    
    !!! info
        `Form` is a class that inherits directly from `Body`.
    
    !!! tip
        To declare form bodies, you need to use `Form` explicitly, because without it the parameters would be interpreted as query parameters or body (JSON) parameters.
    
    ## About "Form Fields"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        val header: String? = recordedRequest.getHeader("")
        var chunkSizes: List<Int> = recordedRequest.chunkSizes
        var bodySize: Long = recordedRequest.bodySize
        var body: Buffer = recordedRequest.body
        var utf8Body: String = recordedRequest.body.readUtf8()
        var sequenceNumber: Int = recordedRequest.sequenceNumber
        var tlsVersion: TlsVersion? = recordedRequest.tlsVersion
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
  9. docs/de/docs/tutorial/request-forms.md

    Mit `Form` haben Sie die gleichen Konfigurationsmöglichkeiten wie mit `Body` (und `Query`, `Path`, `Cookie`), inklusive Validierung, Beispielen, einem Alias (z. B. `user-name` statt `username`), usw.
    
    !!! info
        `Form` ist eine Klasse, die direkt von `Body` erbt.
    
    !!! tip "Tipp"
        Um Formularbodys zu deklarieren, verwenden Sie explizit `Form`, da diese Parameter sonst als Query-Parameter oder Body(-JSON)-Parameter interpretiert werden würden.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:06:54 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  10. docs/em/docs/tutorial/schema-extra-example.md

    ## `example` &amp; `examples` 🗄
    
    🕐❔ ⚙️ 🙆:
    
    * `Path()`
    * `Query()`
    * `Header()`
    * `Cookie()`
    * `Body()`
    * `Form()`
    * `File()`
    
    👆 💪 📣 💽 `example` ⚖️ 👪 `examples` ⏮️ 🌖 ℹ 👈 🔜 🚮 **🗄**.
    
    ### `Body` ⏮️ `example`
    
    📥 👥 🚶‍♀️ `example` 📊 ⌛ `Body()`:
    
    === "🐍 3️⃣.6️⃣ &amp; 🔛"
    
        ```Python hl_lines="20-25"
        {!> ../../../docs_src/schema_extra_example/tutorial003.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 5.5K bytes
    - Viewed (0)
Back to top