- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for compress (0.19 sec)
-
tests/test_tutorial/test_custom_request_and_route/test_tutorial001.py
return {"request_class": type(request).__name__} client = TestClient(app) @pytest.mark.parametrize("compress", [True, False]) def test_gzip_request(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"
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sun Nov 13 14:26:09 GMT 2022 - 886 bytes - Viewed (0) -
docs/it/docs/index.md
È normalissimo **Python 3.6+**. Per esempio, per un `int`: ```Python item_id: int ``` o per un modello `Item` più complesso: ```Python item: Item ``` ...e con quella singola dichiarazione hai in cambio: * Supporto per gli editor di testo, incluso: * Autocompletamento. * Controllo sulle annotazioni di tipo.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 23:58:47 GMT 2024 - 19.3K bytes - Viewed (0) -
docs/fr/docs/advanced/additional-responses.md
## Combinaison d'informations Vous pouvez également combiner des informations de réponse provenant de plusieurs endroits, y compris les paramètres `response_model`, `status_code` et `responses`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 9.6K bytes - Viewed (0) -
docs/fr/docs/history-design-future.md
Elle a été préférée aux solutions précédentes parce qu'elle convient mieux à de nombreux cas d'utilisation. De nombreux développeurs et équipes dépendent déjà de **FastAPI** pour leurs projets (y compris moi et mon équipe). Mais il y a encore de nombreuses améliorations et fonctionnalités à venir. **FastAPI** a un grand avenir devant lui.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 4.9K bytes - Viewed (0) -
docs/fr/docs/tutorial/path-params.md
<img src="/img/tutorial/path-params/image02.png"> De la même façon, il existe bien d'autres outils compatibles, y compris des outils de génération de code pour de nombreux langages. ## Pydantic
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 10K bytes - Viewed (0) -
docs/en/docs/advanced/behind-a-proxy.md
<a href="https://github.com/containous/traefik/releases" class="external-link" target="_blank">Download Traefik</a>, it's a single binary, you can extract the compressed file and run it directly from the terminal. Then create a file `traefik.toml` with: ```TOML hl_lines="3" [entryPoints] [entryPoints.http] address = ":9999" [providers]
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 11.6K bytes - Viewed (2) -
docs/en/docs/alternatives.md
# Alternatives, Inspiration and Comparisons What inspired **FastAPI**, how it compares to alternatives and what it learned from them. ## Intro **FastAPI** wouldn't exist if not for the previous work of others. There have been many tools created before that have helped inspire its creation.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 23.2K 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) -
.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*/
Others - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 30 06:38:13 GMT 2024 - 1.4K bytes - Viewed (0) -
docs/en/docs/advanced/security/http-basic-auth.md
Then the Python code in your application would be equivalent to something like: ```Python if "johndoe" == "stanleyjobson" and "love123" == "swordfish": ... ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 14:33:05 GMT 2024 - 5.9K bytes - Viewed (0)