- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 112 for decompress (0.07 sec)
-
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\"") } @TestRegistered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Aug 22 08:12:58 UTC 2025 - 4.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/compression/CompressionService.java
* @param algorithm the compression algorithm that was used * @return the decompressed data * @throws CIFSException if decompression fails */ byte[] decompress(byte[] compressedData, int algorithm) throws CIFSException; /** * Decompresses data with offset and length parameters. * * @param compressedData the compressed data buffer * @param offset the offset in the bufferRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.2K bytes - Viewed (0) -
okhttp-zstd/src/test/java/okhttp3/zstd/ZstdInterceptorTest.kt
header("Content-Encoding", "zstd") } val decompressed = zstdInterceptor.decompress(response) assertThat(decompressed.header("Content-Encoding")).isNull() assertFailsWith<IOException> { decompressed.body.string() }.also { ioe -> assertThat(ioe).hasMessage("zstd decompress failed: Unknown frame descriptor") } } @Test
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Aug 01 06:04:22 UTC 2025 - 4.8K bytes - Viewed (1) -
src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java
byte[] compressed = compressionService.compress(testData, CompressionService.COMPRESSION_NONE); assertArrayEquals(testData, compressed); byte[] decompressed = compressionService.decompress(compressed, CompressionService.COMPRESSION_NONE); assertArrayEquals(testData, decompressed); } @Test @DisplayName("Test LZ77 compression and decompression")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/compression/DefaultCompressionService.java
} } @Override public int decompress(byte[] compressedData, int offset, int length, byte[] outputBuffer, int outputOffset, int algorithm) throws CIFSException { byte[] decompressed = decompress(compressedData, offset, length, algorithm); if (outputBuffer.length - outputOffset < decompressed.length) { throw new CIFSException("Output buffer too small"); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.2K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/CompressionInterceptor.kt
* A decompression algorithm such as Gzip. Must provide the Accept-Encoding value and decompress a Source. */ interface DecompressionAlgorithm { val encoding: String fun decompress(compressedSource: BufferedSource): Source } } object Gzip : DecompressionAlgorithm { override val encoding: String get() = "gzip" override fun decompress(compressedSource: BufferedSource): Source = GzipSource(compressedSource)Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Aug 01 06:04:22 UTC 2025 - 3.2K bytes - Viewed (1) -
docs/en/docs/how-to/custom-request-and-route.md
/// First, we create a `GzipRequest` class, which will overwrite the `Request.body()` method to decompress the body in the presence of an appropriate header. 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.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 4.6K bytes - Viewed (0) -
.github/workflows/test-redistribute.yml
run: pip install build - name: Build source distribution env: TIANGOLO_BUILD_PACKAGE: ${{ matrix.package }} run: python -m build --sdist - name: Decompress source distribution run: | cd dist tar xvf fastapi*.tar.gz - name: Install test dependencies run: | cd dist/fastapi*/Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Fri Aug 15 21:44:06 UTC 2025 - 1.8K bytes - Viewed (0) -
okhttp-zstd/api/okhttp-zstd.api
public final class okhttp3/zstd/Zstd : okhttp3/CompressionInterceptor$DecompressionAlgorithm { public static final field INSTANCE Lokhttp3/zstd/Zstd; public fun decompress (Lokio/BufferedSource;)Lokio/Source; public fun getEncoding ()Ljava/lang/String;Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 18:34:32 UTC 2025 - 259 bytes - Viewed (0) -
okhttp-brotli/api/okhttp-brotli.api
public final class okhttp3/brotli/Brotli : okhttp3/CompressionInterceptor$DecompressionAlgorithm { public static final field INSTANCE Lokhttp3/brotli/Brotli; public fun decompress (Lokio/BufferedSource;)Lokio/Source; public fun getEncoding ()Ljava/lang/String; } public final class okhttp3/brotli/BrotliInterceptor : okhttp3/CompressionInterceptor { public static final field INSTANCE Lokhttp3/brotli/BrotliInterceptor;Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 18:34:32 UTC 2025 - 428 bytes - Viewed (0)