mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 04:51:35 +03:00
8972dfb018
Although brotli itself is MIT-licensed, the Haskell brotli library that provides bindings to it is GPL-licensed, so we cannot use it unless we get a response on haskell-hvr/brotli#1.
15 lines
501 B
ReStructuredText
15 lines
501 B
ReStructuredText
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 "/v1/query" and "/v1/graphql" endpoints are compressed.**
|