- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 149 for GZIP (0.02 seconds)
-
docs/zh/docs/advanced/middleware.md
如果传入的请求没有通过验证,则发送 `400` 响应。 ## `GZipMiddleware` 处理 `Accept-Encoding` 请求头中包含 `gzip` 请求的 GZip 响应。 中间件会处理标准响应与流响应。 {* ../../docs_src/advanced_middleware/tutorial003.py hl[2,6] *} 支持以下参数: * `minimum_size` - 小于最小字节的响应不使用 GZip。 默认值是 `500`。 ## 其它中间件 除了上述中间件外,FastAPI 还支持其它ASGI 中间件。 例如:Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 3.5K bytes - Click Count (0) -
samples/compare/src/test/kotlin/okhttp3/compare/ApacheHttpClientTest.kt
} val recorded = server.takeRequest() assertThat(recorded.headers["Accept"]).isEqualTo("text/plain") assertThat(recorded.headers["Accept-Encoding"]).isEqualTo("gzip, x-gzip, deflate") assertThat(recorded.headers["User-Agent"]!!).startsWith("Apache-HttpClient/") }Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 2.1K bytes - Click Count (0) -
okhttp-brotli/README.md
OkHttp Brotli Implementation ============================ This module is an implementation of [Brotli][1] compression. It enables Brotli support in addition to tranparent Gzip support, provided Accept-Encoding is not set previously. Modern web servers must choose to return Brotli responses. n.b. It is not used for sending requests. ```java OkHttpClient client = new OkHttpClient.Builder() .addInterceptor(BrotliInterceptor.INSTANCE) .build();
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Oct 30 21:39:59 GMT 2025 - 571 bytes - Click Count (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Nov 07 02:57:33 GMT 2025 - 11.5K bytes - Click Count (0) -
tests/test_tutorial/test_header_param_models/test_tutorial003.py
"host": "testserver", "traceparent": "123", "x_tag": [], "accept": "*/*", "accept-encoding": "gzip, deflate", "connection": "keep-alive", "user-agent": "testclient", "save-data": "true", "if-modified-since": "yesterday",
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 8.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/SearchHelper.java
throw new SearchQueryException("Failed to serialize a query: " + Arrays.toString(parameters), e); } } /** * Compresses data using GZIP compression. * * @param data The data to compress * @return GZIP-compressed data * @throws IORuntimeException if compression fails */ protected byte[] gzipCompress(final byte[] data) {
Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Sat Dec 20 05:56:45 GMT 2025 - 36.3K bytes - Click Count (0) -
internal/http/transports.go
TLSHandshakeTimeout: 10 * time.Second, TLSClientConfig: &tlsClientConfig, ForceAttemptHTTP2: s.EnableHTTP2, // Go net/http automatically unzip if content-type is // gzip disable this feature, as we are always interested // in raw stream. DisableCompression: true, } // https://github.com/golang/go/issues/23559 // https://github.com/golang/go/issues/42534
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 08 17:51:53 GMT 2025 - 6.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
assertThat(request.headers["Accept-Encoding"]).isEqualTo("gzip") } @Test fun clientConfiguredGzipContentEncoding() { val bodyBytes = gzip("ABCDEFGHIJKLMNOPQRSTUVWXYZ") server.enqueue( MockResponse .Builder() .body(bodyBytes) .addHeader("Content-Encoding: gzip") .build(), ) val response = getResponse(
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Jun 21 20:36:35 GMT 2025 - 133.2K bytes - Click Count (0) -
okhttp-zstd/README.md
OkHttp Zstandard (zstd) Integration =================================== This module enables [Zstandard (zstd)][1] response compression in addition to Gzip, as long as the `Accept-Encoding` header is not otherwise set. Web servers must be configured to return zstd responses. Note that zstd is not used for sending requests. ```java OkHttpClient client = new OkHttpClient.Builder() .addInterceptor(ZstdInterceptor.INSTANCE) .build(); ```
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Oct 30 21:39:59 GMT 2025 - 556 bytes - Click Count (1) -
samples/compare/src/test/kotlin/okhttp3/compare/JettyHttpClientTest.kt
val recorded = server.takeRequest() assertThat(recorded.headers["Accept"]).isEqualTo("text/plain") assertThat(recorded.headers["Accept-Encoding"]).isEqualTo("gzip") assertThat(recorded.headers["Connection"]).isNull() assertThat(recorded.headers["User-Agent"]!!).matches(Regex("Jetty/.*")) }Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 2.1K bytes - Click Count (0)