Class HTTPCompressionPolicy

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<HTTPCompressionPolicyBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class HTTPCompressionPolicy
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<HTTPCompressionPolicyBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    httpCompressionPolicy turns on compression for the specified MIME types.


    This field is optional, and its absence implies that compression should not be enabled globally in HAProxy.


    If httpCompressionPolicy exists, compression should be enabled only for the specified MIME types.

    See Also:
    Serialized Form
    • Constructor Detail

      • HTTPCompressionPolicy

        public HTTPCompressionPolicy()
        No args constructor for use in serialization
      • HTTPCompressionPolicy

        public HTTPCompressionPolicy​(List<String> mimeTypes)
    • Method Detail

      • getMimeTypes

        public List<String> getMimeTypes()
        mimeTypes is a list of MIME types that should have compression applied. This list can be empty, in which case the ingress controller does not apply compression.


        Note: Not all MIME types benefit from compression, but HAProxy will still use resources to try to compress if instructed to. Generally speaking, text (html, css, js, etc.) formats benefit from compression, but formats that are already compressed (image, audio, video, etc.) benefit little in exchange for the time and cpu spent on compressing again. See https://joehonton.medium.com/the-gzip-penalty-d31bd697f1a2

      • setMimeTypes

        public void setMimeTypes​(List<String> mimeTypes)
        mimeTypes is a list of MIME types that should have compression applied. This list can be empty, in which case the ingress controller does not apply compression.


        Note: Not all MIME types benefit from compression, but HAProxy will still use resources to try to compress if instructed to. Generally speaking, text (html, css, js, etc.) formats benefit from compression, but formats that are already compressed (image, audio, video, etc.) benefit little in exchange for the time and cpu spent on compressing again. See https://joehonton.medium.com/the-gzip-penalty-d31bd697f1a2

      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)