Closed robogeek closed 1 year ago
I feel that compression is clearly out of scope for OpenAPI backend. It’s pretty standard for most server implementations to support response compression with Accept Encoding headers out of the box. OpenAPI backend is designed to plug into a server / framework, not be the server.
Is it possible for an API implemented with OpenAPI Backend to compress responses using GZIP?
I have such an API, and ran this test (going by advice found here https://davidwalsh.name/check-gzip):
Notice that
Accept-Encoding
is set, but the response was not encoded.