- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 42 for uncompress (0.19 sec)
-
okhttp-brotli/src/main/kotlin/okhttp3/brotli/internal/Uncompress.kt
import okhttp3.ResponseBody.Companion.asResponseBody import okhttp3.internal.http.promisesBody import okio.GzipSource import okio.buffer import okio.source import org.brotli.dec.BrotliInputStream fun uncompress(response: Response): Response { if (!response.promisesBody()) { return response } val body = response.body val encoding = response.header("Content-Encoding") ?: return response
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 13:19:01 GMT 2024 - 1.5K bytes - Viewed (0) -
okhttp-brotli/src/test/java/okhttp3/brotli/BrotliInterceptorTest.kt
val response = response("https://httpbin.org/brotli", s.decodeHex()) { header("Content-Encoding", "br") } val uncompressed = uncompress(response) val responseString = uncompressed.body.string() assertThat(responseString).contains("\"brotli\": true,") assertThat(responseString).contains("\"Accept-Encoding\": \"br\"") } @Test
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.2K bytes - Viewed (0) -
okhttp-brotli/src/main/kotlin/okhttp3/brotli/BrotliInterceptor.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.brotli import okhttp3.Interceptor import okhttp3.Response import okhttp3.brotli.internal.uncompress /** * Transparent Brotli response support. * * Adds Accept-Encoding: br to request and checks (and strips) for Content-Encoding: br in
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.3K bytes - Viewed (0) -
okhttp-brotli/src/test/java/okhttp3/brotli/BrotliBombTest.kt
.request(Request.Builder().url("https://example.com/").build()) .body(readBrotli10G().toResponseBody()) .protocol(Protocol.HTTP_2) .build() val uncompressed = uncompress(response) assertFailure { uncompressed.body.string() }.isInstanceOf<IOException>() .message() .isNotNull() .matches( Regex(
Plain Text - Registered: Fri Mar 29 11:42:11 GMT 2024 - Last Modified: Mon Jan 29 22:50:20 GMT 2024 - 2.9K bytes - Viewed (0) -
docs/select/README.md
Install `aws-sdk-python` from AWS SDK for Python official docs [here](https://aws.amazon.com/sdk-for-python/) ### 3. Example
Plain Text - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Sep 29 04:28:45 GMT 2022 - 6.5K bytes - Viewed (0) -
docs/compression/README.md
MinIO server allows streaming compression to ensure efficient disk space usage. Compression happens inflight, i.e objects are compressed before being written to disk(s). MinIO uses [`klauspost/compress/s2`](https://github.com/klauspost/compress/tree/master/s2) streaming compression due to its stability and performance. This algorithm is specifically optimized for machine generated content. Write throughput is typically at least 500MB/s per CPU core,
Plain Text - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Mar 11 11:55:34 GMT 2024 - 5.1K bytes - Viewed (0) -
api/go1.6.txt
pkg debug/elf, const COMPRESS_HIOS = 1879048191 pkg debug/elf, const COMPRESS_HIOS CompressionType pkg debug/elf, const COMPRESS_HIPROC = 2147483647 pkg debug/elf, const COMPRESS_HIPROC CompressionType pkg debug/elf, const COMPRESS_LOOS = 1610612736 pkg debug/elf, const COMPRESS_LOOS CompressionType pkg debug/elf, const COMPRESS_LOPROC = 1879048192 pkg debug/elf, const COMPRESS_LOPROC CompressionType
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Wed Jan 13 23:40:13 GMT 2016 - 12.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketReaderTest.kt
assertFailsWith<EOFException> { clientReader.processNextFrame() } } @Test fun clientUncompressedMessageWithCompressedFlagThrows() { data.write("c10548656c6c6f".decodeHex()) // Uncompressed 'Hello', flag 1 set assertFailsWith<IOException> { clientReaderWithCompression.processNextFrame() } } @Test fun clientIncompleteControlFrameBodyThrows() {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 14.4K bytes - Viewed (0) -
docs/tls/README.md
``` ### 3.3 Use GnuTLS (for Windows) to Generate a Certificate This section describes how to use GnuTLS on Windows to generate a certificate. #### 3.3.1 Install and configure GnuTLS Download and decompress the Windows version of GnuTLS from [here](http://www.gnutls.org/download.html). Use PowerShell to add the path of the extracted GnuTLS binary to the system path: ```
Plain Text - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Sep 29 04:28:45 GMT 2022 - 8.4K bytes - Viewed (0) -
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. ```Python hl_lines="8-15" {!../../../docs_src/custom_request_and_route/tutorial001.py!} ```
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)