Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Add support for gzip compression #258

Open
@brianneisler

Description

@brianneisler

This is a Feature Request

Description

It would be great to support gzip compression for all http traffic including requests and responses.

Use-cases

  • Compress http requests and allow for the event-gateway to decompress the request
  • Compress responses from the gateway

Concepts

  • Allow for accepted compression types to be configured at the gateway level (during startup time) in the order that they are preferred.
  • Allow for allowed compression types to be configured on a per subscription basis.
  • Gateway should inspect the Accept-Encoding header to determine which types of compression are supported

Examples

Sending a compressed request

curl --request POST \
  --url http://127.0.0.1:4000/ \
  --header 'content-type: application/json' \
  --header 'content-encoding: gzip' \
  --data ./file.gz

Accepting a gzip response
request

curl --request GET \
  --url http://127.0.0.1:4000/ \
  --header 'Accept-Encoding: gzip, deflate, br' \

response headers

Content-Encoding: br

Research

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions