Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 81 - 90 of 180 for Requestbodys (0.09 seconds)

  1. docs/changelogs/upgrading_to_okhttp_4.md

    | MediaType.parse(String)             | String.toMediaTypeOrNull()      |
    | RequestBody.create(ByteArray)       | ByteArray.toRequestBody()       |
    | RequestBody.create(ByteString)      | ByteString.toRequestBody()      |
    | RequestBody.create(File)            | File.asRequestBody()            |
    | RequestBody.create(String)          | String.toRequestBody()          |
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 06 16:58:16 GMT 2022
    - 10.9K bytes
    - Click Count (0)
  2. tests/test_openapi_separate_input_output_schemas.py

                        },
                        "post": {
                            "summary": "Create Item",
                            "operationId": "create_item_items__post",
                            "requestBody": {
                                "content": {
                                    "application/json": {
                                        "schema": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 27.8K bytes
    - Click Count (0)
  3. tests/test_request_params/test_form/utils.py

    from typing import Any
    
    
    def get_body_model_name(openapi: dict[str, Any], path: str) -> str:
        body = openapi["paths"][path]["post"]["requestBody"]
        body_schema = body["content"]["application/x-www-form-urlencoded"]["schema"]
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 285 bytes
    - Click Count (0)
  4. docs/de/docs/advanced/path-operation-advanced-configuration.md

    Dennoch können wir das zu erwartende Schema für den Requestbody deklarieren.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 8.2K bytes
    - Click Count (0)
  5. samples/guide/src/main/java/okhttp3/recipes/PostForm.java

    import java.io.IOException;
    import okhttp3.FormBody;
    import okhttp3.OkHttpClient;
    import okhttp3.Request;
    import okhttp3.RequestBody;
    import okhttp3.Response;
    
    public final class PostForm {
      private final OkHttpClient client = new OkHttpClient();
    
      public void run() throws Exception {
        RequestBody formBody = new FormBody.Builder()
            .add("search", "Jurassic Park")
            .build();
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun May 22 01:29:42 GMT 2016
    - 1.4K bytes
    - Click Count (0)
  6. samples/guide/src/main/java/okhttp3/recipes/PostStreamingWithPipe.java

     * limitations under the License.
     */
    package okhttp3.recipes;
    
    import java.io.IOException;
    import okhttp3.MediaType;
    import okhttp3.OkHttpClient;
    import okhttp3.Request;
    import okhttp3.RequestBody;
    import okhttp3.Response;
    import okio.BufferedSink;
    import okio.Okio;
    import okio.Pipe;
    
    public final class PostStreamingWithPipe {
      public static final MediaType MEDIA_TYPE_MARKDOWN
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Jul 06 03:18:15 GMT 2018
    - 3.1K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/CallKotlinTest.kt

      fun testHeadAfterPut() {
        class ErringRequestBody : RequestBody() {
          override fun contentType(): MediaType = "application/xml".toMediaType()
    
          override fun writeTo(sink: BufferedSink) {
            sink.writeUtf8("<el")
            sink.flush()
            throw IOException("failed to stream the XML")
          }
        }
    
        class ValidRequestBody : RequestBody() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

      @Test
      fun requestBodySuccessStreaming() {
        val requestBody: RequestBody =
          object : RequestBody() {
            override fun contentType() = "text/plain".toMediaType()
    
            override fun writeTo(sink: BufferedSink) {
              sink.write(ByteArray(8192))
              sink.flush()
            }
          }
        requestBodySuccess(requestBody, CoreMatchers.equalTo(8192L), CoreMatchers.equalTo(19L))
      }
    
    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)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ThreadInterruptTest.kt

    import okhttp3.Callback
    import okhttp3.DelegatingServerSocketFactory
    import okhttp3.DelegatingSocketFactory
    import okhttp3.OkHttpClient
    import okhttp3.OkHttpClientTestRule
    import okhttp3.Request
    import okhttp3.RequestBody
    import okhttp3.Response
    import okhttp3.mockwebserver.MockResponse
    import okhttp3.mockwebserver.MockWebServer
    import okhttp3.mockwebserver.SocketPolicy
    import okhttp3.testing.PlatformRule
    import okio.Buffer
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 18:33:48 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  10. tests/test_modules_same_name_body/test_main.py

                                },
                            },
                            "summary": "Compute",
                            "operationId": "compute_a_compute_post",
                            "requestBody": {
                                "content": {
                                    "application/json": {
                                        "schema": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 6.2K bytes
    - Click Count (0)
Back to Top