Skip to content

Response compression plugin - customize content-types for compression #1963

Description

@KingSora

Describe the feature

The response compression plugin will compress all response above a certain threshold, but it doesn't offer an opt-out for responses that are already compressed formats (e.g. files like mp4, jpg etc.)

The feature would be to expose an option to disable compression for certain procedures which don't need or want it.

Ideally this can be configured completely independently for any procedure and is not dependent on content-types or other headers. Somethng like the allow function from the OpenAPIReferenceHandlerPlugin. (a function which receives context anf returns a boolean whether to compress or not)

Additional information

  • Would you be willing to help implement this feature?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions