graphql-engine/server/src-test
Brandon Simmons 6451d9c9ce server: refactor Hasura.Server.Compression for clarity/correctness
context: This is  foundation work, before we change how the server chooses to compress or not
part of effort: #5518

-----

Prior to this change it was difficult to understand how the functionality in this module related to the semantics of Accept-Encoding. We also didn't correctly handle directives with qvalues.

After this change certain technical infelicities are called out without modifying the behavior of the server; for instance we continue to fall back to identity (no compression) in the case where technically we're supposed to return 406, and we also  continue to treat `*` conservatively as meaning “use no compression”.

The only external change here is `gzip;q=x.y` now results in a zipped response.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7213
GitOrigin-RevId: 1910ffd70d29f1ab8825c601f1bd998be70ceeeb
2022-12-09 06:08:27 +00:00
..
Control server: Share tests between CircularT and MemoizeT. 2022-09-08 19:38:49 +00:00
Data scaffolding for remote-schemas module 2022-10-21 03:15:04 +00:00
Hasura server: refactor Hasura.Server.Compression for clarity/correctness 2022-12-09 06:08:27 +00:00
Network/HTTP/Client Upgrade Ormolu to v0.5. 2022-11-02 20:55:13 +00:00
Test Add mutability properties to the Data Connector schema API [GDC-664] 2022-12-08 02:07:01 +00:00
Main.hs server: Split the integration tests out into their own directories. 2022-11-17 12:56:26 +00:00