2020-01-14 15:57:45 +03:00
|
|
|
.. meta::
|
|
|
|
:description: Use HTTP compression with Hasura GraphQL engine
|
|
|
|
:keywords: hasura, docs, deployment, http compression
|
|
|
|
|
2020-03-11 22:42:36 +03:00
|
|
|
.. _http_compression:
|
2019-10-23 12:23:41 +03:00
|
|
|
|
2019-09-19 15:54:40 +03:00
|
|
|
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.
|
2019-10-05 10:20:50 +03:00
|
|
|
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``.
|
2019-09-19 15:54:40 +03:00
|
|
|
|
|
|
|
**Only responses from "/v1/query" and "/v1/graphql" endpoints are compressed.**
|