graphql-engine/docs/graphql/core/deployment/compression.rst
hasura-bot 866476ab36 docs: update references, api signatures, image widths
GITHUB_PR_NUMBER: 8011
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/8011

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3317
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 90c8f75003a07c5153c9e478efa599ab0bfb85d9
2022-01-10 18:40:21 +00:00

21 lines
657 B
ReStructuredText

.. meta::
:description: Use HTTP compression with Hasura GraphQL engine
:keywords: hasura, docs, deployment, http compression
.. _http_compression:
HTTP Compression
================
.. contents:: Table of contents
:backlinks: none
:depth: 1
:local:
The Hasura GraphQL Engine supports HTTP compression.
The server looks for the ``Accept-Encoding`` header in request.
If the header contains ``gzip`` then the server uses `Gzip <https://en.wikipedia.org/wiki/Gzip>`__ compression.
Also, the server sets the ``Content-Encoding`` response header value to ``gzip``.
**Only responses from "/v2/query" and "/v1/graphql" endpoints are compressed.**