Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for Uncompressed (0.15 sec)

  1. okhttp-brotli/src/test/java/okhttp3/brotli/BrotliInterceptorTest.kt

        val response =
          response("https://httpbin.org/brotli", s.decodeHex()) {
            header("Content-Encoding", "br")
          }
    
        val uncompressed = brotliInterceptor.decompress(response)
    
        val responseString = uncompressed.body.string()
        assertThat(responseString).contains("\"brotli\": true,")
        assertThat(responseString).contains("\"Accept-Encoding\": \"br\"")
      }
    
      @Test
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 22 08:12:58 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/compression/DefaultCompressionService.java

                throws CIFSException {
            byte[] decompressed = decompress(compressedData, offset, length, algorithm);
            if (outputBuffer.length - outputOffset < decompressed.length) {
                throw new CIFSException("Output buffer too small");
            }
            System.arraycopy(decompressed, 0, outputBuffer, outputOffset, decompressed.length);
            return decompressed.length;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java

        }
    
        @Test
        @DisplayName("Test LZ77+Huffman compression and decompression")
        public void testLZ77HuffmanCompression() throws CIFSException {
            byte[] compressed = compressionService.compress(testData, CompressionService.COMPRESSION_LZ77_HUFFMAN);
            assertNotNull(compressed);
            assertTrue(compressed.length > 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  4. docs/en/docs/how-to/custom-request-and-route.md

    If there's no `gzip` in the header, it will not try to decompress the body.
    
    That way, the same route class can handle gzip compressed or uncompressed requests.
    
    {* ../../docs_src/custom_request_and_route/tutorial001.py hl[8:15] *}
    
    ### Create a custom `GzipRoute` class { #create-a-custom-gziproute-class }
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  5. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

        server.enqueue(
          MockResponse
            .Builder()
            .setHeader("Content-Type", PLAIN)
            .body(Buffer().writeUtf8("Uncompressed"))
            .build(),
        )
        val response =
          client
            .newCall(
              request()
                .post("Uncompressed".toRequestBody())
                .gzip()
                .build(),
            ).execute()
        val responseBody = response.body
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 37.5K bytes
    - Viewed (0)
  6. cmd/object-api-utils.go

    		}
    		conn.Close()
    		break
    	}
    
    	return host
    }
    
    // IsCompressed returns true if the object is marked as compressed.
    func (o *ObjectInfo) IsCompressed() bool {
    	_, ok := o.UserDefined[ReservedMetadataPrefix+"compression"]
    	return ok
    }
    
    // IsCompressedOK returns whether the object is compressed and can be decompressed.
    func (o *ObjectInfo) IsCompressedOK() (bool, error) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Jun 25 15:08:54 UTC 2025
    - 37.3K bytes
    - Viewed (0)
  7. cmd/object-handlers_test.go

    	}
    
    	globalCompressConfigMu.Lock()
    	compressEnabled := globalCompressConfig.Enabled
    	globalCompressConfigMu.Unlock()
    	if compressEnabled && !r.ObjInfo.IsCompressed() {
    		t.Errorf("Test %s: object found to be uncompressed though compression was enabled", instanceType)
    	}
    }
    
    // Wrapper for calling Copy Object Part API handler tests for both Erasure multiple disks and single node setup.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 163.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/compression/CompressionService.java

         * @return the decompressed data
         * @throws CIFSException if decompression fails
         */
        byte[] decompress(byte[] compressedData, int offset, int length, int algorithm) throws CIFSException;
    
        /**
         * Decompresses data into a provided buffer.
         *
         * @param compressedData the compressed data buffer
         * @param offset the offset in the compressed data buffer
         * @param length the length of compressed data
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  9. okhttp-zstd/src/test/java/okhttp3/zstd/ZstdInterceptorTest.kt

            header("Content-Encoding", "gzip")
          }
    
        val decompressed = zstdInterceptor.decompress(response)
        assertThat(decompressed.header("Content-Encoding")).isNull()
    
        val responseString = decompressed.body.string()
        assertThat(responseString).isEqualTo("hello gzip world")
      }
    
      @Test
      fun testNoDecompress() {
        val s = "hello not compressed world".encodeUtf8()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/CompressionInterceptor.kt

          decompress(response)
        } else {
          chain.proceed(chain.request())
        }
    
      /**
       * Returns a decompressed copy of the Response, typically via a streaming Source.
       * If no known decompression or the response is not compressed, returns the response unmodified.
       */
      internal fun decompress(response: Response): Response {
        if (!response.promisesBody()) {
          return response
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 3.2K bytes
    - Viewed (0)
Back to top