Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultMinSize = 1024
DefaultMinSize is the default minimum size (in bytes) required to enable compression. See https://github.com/klauspost/compress/blob/9559b037e79ad673c71f6ef7c732c00949014cd2/gzhttp/compress.go#L47.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Compress ¶
type Compress struct { // ExcludedContentTypes defines the list of content types to compare the Content-Type header of the incoming requests and responses before compressing. // `application/grpc` is always excluded. ExcludedContentTypes []string `` /* 127-byte string literal not displayed */ // MinResponseBodyBytes defines the minimum amount of bytes a response body must have to be compressed. // Default: 1024. MinResponseBodyBytes int `` /* 127-byte string literal not displayed */ }
Click to show internal directories.
Click to hide internal directories.