- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 306 for gzip (0.01 seconds)
-
cmd/api-resources_test.go
"fetch-owner": []string{"true"}, "max-keys": []string{"100"}, "encoding-type": []string{"gzip"}, }, prefix: "photos/", token: "token", startAfter: "start-after", delimiter: SlashSeparator, fetchOwner: true, maxKeys: 100, encodingType: "gzip", errCode: ErrNone, }, { values: url.Values{ "prefix": []string{"photos/"},Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Apr 23 18:58:53 GMT 2021 - 7.1K bytes - Click Count (0) -
docs/de/docs/how-to/custom-request-and-route.md
* Dekomprimierung gzip-komprimierter Requestbodys. * Automatisches Loggen aller Requestbodys. ## Handhaben von benutzerdefinierten Requestbody-Kodierungen { #handling-custom-request-body-encodings } Sehen wir uns an, wie Sie eine benutzerdefinierte `Request`-Unterklasse verwenden, um gzip-Requests zu dekomprimieren.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 10 13:54:34 GMT 2025 - 5.7K bytes - Click Count (0) -
okhttp/src/commonTest/kotlin/okhttp3/CompressionInterceptorTest.kt
} @Test fun gzipThroughCall() { val gzip = CompressionInterceptor(Gzip) val client = clientTestRule .newClientBuilder() .addInterceptor(gzip) .addInterceptor { chain -> assertThat(chain.request().header("Accept-Encoding")).isEqualTo("gzip") Response .Builder() .request(chain.request())
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Aug 01 06:04:22 GMT 2025 - 3K bytes - Click Count (0) -
docs_src/custom_request_and_route/tutorial001_py310.py
import gzip from collections.abc import Callable from fastapi import Body, FastAPI, Request, Response from fastapi.routing import APIRoute class GzipRequest(Request): async def body(self) -> bytes: if not hasattr(self, "_body"): body = await super().body() if "gzip" in self.headers.getlist("Content-Encoding"): body = gzip.decompress(body) self._body = body
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 976 bytes - Click Count (0) -
docs_src/custom_request_and_route/tutorial001_py39.py
import gzip from typing import Callable from fastapi import Body, FastAPI, Request, Response from fastapi.routing import APIRoute class GzipRequest(Request): async def body(self) -> bytes: if not hasattr(self, "_body"): body = await super().body() if "gzip" in self.headers.getlist("Content-Encoding"): body = gzip.decompress(body) self._body = body return self._body
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 967 bytes - Click Count (0) -
docs_src/custom_request_and_route/tutorial001_an_py310.py
import gzip from collections.abc import Callable from typing import Annotated from fastapi import Body, FastAPI, Request, Response from fastapi.routing import APIRoute class GzipRequest(Request): async def body(self) -> bytes: if not hasattr(self, "_body"): body = await super().body() if "gzip" in self.headers.getlist("Content-Encoding"): body = gzip.decompress(body)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 1015 bytes - Click Count (0) -
tests/test_tutorial/test_custom_request_and_route/test_tutorial001.py
def test_gzip_request(client: TestClient, compress): n = 1000 headers = {} body = [1] * n data = json.dumps(body).encode() if compress: data = gzip.compress(data) headers["Content-Encoding"] = "gzip" headers["Content-Type"] = "application/json" response = client.post("/sum", content=data, headers=headers) assert response.json() == {"sum": n}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 1.3K bytes - Click Count (0) -
docs/de/docs/advanced/middleware.md
## `GZipMiddleware` { #gzipmiddleware } Verarbeitet GZip-Responses für alle Requests, die `"gzip"` im `Accept-Encoding`-Header enthalten. Diese Middleware verarbeitet sowohl Standard- als auch Streaming-Responses. {* ../../docs_src/advanced_middleware/tutorial003_py39.py hl[2,6] *}Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 5.1K bytes - Click Count (0) -
okhttp-zstd/src/test/java/okhttp3/zstd/ZstdInterceptorJavaTest.java
*/ package okhttp3.zstd; import okhttp3.CompressionInterceptor; import okhttp3.Gzip; import okhttp3.brotli.Brotli; import org.junit.jupiter.api.Test; class ZstdInterceptorJavaTest { @Test public void testConstructor() { CompressionInterceptor interceptor = new CompressionInterceptor( Zstd.INSTANCE, Gzip.INSTANCE, Brotli.INSTANCE ); }Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Aug 01 06:04:22 GMT 2025 - 969 bytes - Click Count (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt
.gzip() .build(), ).execute() val responseBody = response.body assertThat(responseBody.string(), "Expected response body to be valid") .isEqualTo("Uncompressed") responseBody.close() networkLogs .assertLogEqual("--> POST $url http/1.1") .assertLogEqual("Content-Encoding: gzip") .assertLogEqual("Transfer-Encoding: chunked")Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Nov 07 02:57:33 GMT 2025 - 39.4K bytes - Click Count (0)