Implement customizable minimum body size for compress middleware
This commit is contained in:
parent
8f0832d340
commit
07a3c37a23
13 changed files with 134 additions and 9 deletions
|
@ -104,6 +104,7 @@ type CircuitBreaker struct {
|
|||
// Compress holds the compress configuration.
|
||||
type Compress struct {
|
||||
ExcludedContentTypes []string `json:"excludedContentTypes,omitempty" toml:"excludedContentTypes,omitempty" yaml:"excludedContentTypes,omitempty" export:"true"`
|
||||
MinResponseBodyBytes int `json:"minResponseBodyBytes,omitempty" toml:"minResponseBodyBytes,omitempty" yaml:"minResponseBodyBytes,omitempty" export:"true"`
|
||||
}
|
||||
|
||||
// +k8s:deepcopy-gen=true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue