- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 126 for GZIP (0.24 sec)
-
fastapi/middleware/gzip.py
from starlette.middleware.gzip import GZipMiddleware as GZipMiddleware # noqa...
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Dec 20 18:50:00 GMT 2020 - 79 bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt
.body(Buffer().writeUtf8("Uncompressed")) .build(), ) val response = client.newCall( request() .addHeader("Content-Encoding", "gzip") .post("Uncompressed".toRequestBody().gzip()) .build(), ).execute() val responseBody = response.body assertThat(responseBody.string(), "Expected response body to be valid") .isEqualTo("Uncompressed")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 09:14:38 GMT 2024 - 37.6K bytes - Viewed (0) -
docs_src/custom_request_and_route/tutorial001.py
import gzip from typing import Callable, List 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
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 973 bytes - Viewed (0) -
docs/en/docs/reference/middleware.md
It can be imported from `fastapi`: ```python from fastapi.middleware.cors import CORSMiddleware ``` ::: fastapi.middleware.gzip.GZipMiddleware It can be imported from `fastapi`: ```python from fastapi.middleware.gzip import GZipMiddleware ``` ::: fastapi.middleware.httpsredirect.HTTPSRedirectMiddleware It can be imported from `fastapi`: ```python
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 991 bytes - Viewed (0) -
docs/zh/docs/advanced/middleware.md
如果传入的请求没有通过验证,则发送 `400` 响应。 ## `GZipMiddleware` 处理 `Accept-Encoding` 请求头中包含 `gzip` 请求的 GZip 响应。 中间件会处理标准响应与流响应。 ```Python hl_lines="2 6" {!../../../docs_src/advanced_middleware/tutorial003.py!} ``` 支持以下参数: * `minimum_size` - 小于最小字节的响应不使用 GZip。 默认值是 `500`。 ## 其它中间件 除了上述中间件外,FastAPI 还支持其它ASGI 中间件。 例如:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 22:44:27 GMT 2024 - 3.6K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/CurlRequest.java
import org.codelibs.curl.Curl.Method; import org.codelibs.curl.io.ContentCache; import org.codelibs.curl.io.ContentOutputStream; public class CurlRequest { protected static final String GZIP = "gzip"; protected static final Logger logger = Logger.getLogger(CurlRequest.class.getName()); protected String url; protected Proxy proxy; protected String encoding = "UTF-8";
Java - Registered: Thu May 02 15:34:13 GMT 2024 - Last Modified: Sun Feb 12 12:21:25 GMT 2023 - 12.3K bytes - Viewed (0) -
tests/test_tutorial/test_custom_request_and_route/test_tutorial001.py
import gzip import json import pytest from fastapi import Request from fastapi.testclient import TestClient from docs_src.custom_request_and_route.tutorial001 import app @app.get("/check-class") async def check_gzip_request(request: Request): return {"request_class": type(request).__name__} client = TestClient(app) @pytest.mark.parametrize("compress", [True, False]) def test_gzip_request(compress):
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sun Nov 13 14:26:09 GMT 2022 - 886 bytes - Viewed (0) -
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/"},
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Apr 23 18:58:53 GMT 2021 - 7.1K bytes - Viewed (0) -
cmd/metacache-stream_test.go
null-long-match.wb.expect-noinput", "src/compress/flate/token.go", "src/compress/flate/writer_test.go", "src/compress/gzip/", "src/compress/gzip/example_test.go", "src/compress/gzip/gunzip.go", "src/compress/gzip/gunzip_test.go", "src/compress/gzip/gzip.go", "src/compress/gzip/gzip_test.go", "src/compress/gzip/issue14937_test.go", "src/compress/gzip/testdata/", "src/compress/gzip/testdata/issue6550.gz.base64", "src/compress/lzw/", "src/compress/lzw/reader.go", "src/compress/lzw/reader_test.go", ...
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Sep 19 18:05:16 GMT 2022 - 15K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/mime.map
application/x-director dcr # Director File application/x-dvi dvi # TeX dvi Format application/x-gtar gtar # Gzip and Tar file application/x-gzip gz tgz # Gzip and Tar file application/x-compress z # Gzip and Tar file application/x-hdf hdf # NCSA HDF application/x-ica ica # WinFrames
Plain Text - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Fri Mar 22 20:39:42 GMT 2019 - 5.9K bytes - Viewed (0)