Search Options

Results per page
Sort
Preferred Languages
Advance

Results 551 - 560 of 840 for HEADER (0.1 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/ResponseBody.kt

       * [Byte Order Mark (BOM)](https://en.wikipedia.org/wiki/Byte_order_mark), it is consumed and
       * used to determine the charset of the response bytes.
       *
       * Otherwise if the response has a `Content-Type` header that specifies a charset, that is used
       * to determine the charset of the response bytes.
       *
       * Otherwise the response bytes are decoded as UTF-8.
       */
      fun charStream(): Reader =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:25 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

        // Body contains nothing.
        assertThat(response.body.bytes().size).isEqualTo(0)
        assertThat(response.body.contentLength()).isEqualTo(0)
    
        // Content-Length header doesn't exist in a 204 response.
        assertThat(response.header("content-length")).isNull()
        assertThat(response.code).isEqualTo(204)
        val request = server.takeRequest()
        assertThat(request.requestLine).isEqualTo("GET /foo HTTP/2")
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 73.4K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/kt/PostMultipart.kt

              "image",
              "logo-square.png",
              File("docs/images/logo-square.png").asRequestBody(MEDIA_TYPE_PNG),
            ).build()
    
        val request =
          Request
            .Builder()
            .header("Authorization", "Client-ID $IMGUR_CLIENT_ID")
            .url("https://api.imgur.com/3/image")
            .post(requestBody)
            .build()
    
        client.newCall(request).execute().use { response ->
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

            when(mockInfo.encode(any(byte[].class), anyInt())).thenReturn(20);
            when(mockInfo.size()).thenReturn(20);
            request.setInfo(mockInfo);
    
            // Set up header start for offset calculation
            try {
                Method getHeaderStartMethod = ServerMessageBlock2.class.getDeclaredMethod("getHeaderStart");
                getHeaderStartMethod.setAccessible(true);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java

        }
    
        @Test
        @DisplayName("Test context size calculation")
        public void testContextSize() {
            int expectedSize = 8 + (3 * 2); // Header + 3 algorithms * 2 bytes each
            assertEquals(expectedSize, context.size());
        }
    
        @Test
        @DisplayName("Test context with flags")
        public void testContextWithFlags() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  6. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt

        var requestLine: String = recordedRequest.requestLine
        var method: String? = recordedRequest.method
        var path: String? = recordedRequest.path
        var headers: Headers = recordedRequest.headers
        val header: String? = recordedRequest.getHeader("")
        var chunkSizes: List<Int> = recordedRequest.chunkSizes
        var bodySize: Long = recordedRequest.bodySize
        var body: Buffer = recordedRequest.body
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/dcerpc/DcerpcMessage.java

        }
    
        @Override
        public void encode(final NdrBuffer buf) throws NdrException {
            final int start = buf.getIndex();
            int alloc_hint_index = 0;
    
            buf.advance(16); /* momentarily skip header */
            if (this.ptype == 0) { /* Request */
                alloc_hint_index = buf.getIndex();
                buf.enc_ndr_long(0); /* momentarily skip alloc hint */
                buf.enc_ndr_short(0); /* context id */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  8. docs/em/docs/advanced/websockets.md

    <img src="/img/tutorial/websockets/image04.png">
    
    &amp; 🌐 👫 🔜 ⚙️ 🎏 *️⃣ 🔗.
    
    ## ⚙️ `Depends` &amp; 🎏
    
    *️⃣ 🔗 👆 💪 🗄 ⚪️➡️ `fastapi` &amp; ⚙️:
    
    * `Depends`
    * `Security`
    * `Cookie`
    * `Header`
    * `Path`
    * `Query`
    
    👫 👷 🎏 🌌 🎏 FastAPI 🔗/*➡ 🛠️*:
    
    {* ../../docs_src/websockets/tutorial002.py hl[66:77,76:91] *}
    
    /// info
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/net/TestSmbComTransactionResponseReader.java

            String params = "test";
            byte[] buffer = createBuffer(10, dataBytes, params);
    
            // Verify buffer structure
            assertTrue(buffer.length >= 14, "Buffer should contain header, params and data");
        }
    
        @Test
        public void testByteOperations() {
            // Test byte operations that were used in the original test
            byte b = (byte) 0xFF;
            int value = b & 0xFF;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  10. docs/de/docs/advanced/response-directly.md

    Sie können jedoch direkt eine `JSONResponse` von Ihren *Pfadoperationen* zurückgeben.
    
    Das kann beispielsweise nützlich sein, um benutzerdefinierte Header oder Cookies zurückzugeben.
    
    ## Eine `Response` zurückgeben
    
    Tatsächlich können Sie jede `Response` oder jede Unterklasse davon zurückgeben.
    
    /// tip | Tipp
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top