Documentation ¶
Index ¶
Constants ¶
View Source
const ( NoCompression = gzip.NoCompression BestSpeed = gzip.BestSpeed BestCompression = gzip.BestCompression DefaultCompression = gzip.DefaultCompression HuffmanOnly = gzip.HuffmanOnly )
Copy from compress/gzip
Variables ¶
View Source
var DefaultConfig = Config{ Skipper: middleware.DefaultSkipper, Level: DefaultCompression, }
DefaultConfig use default compression level
Functions ¶
Types ¶
type Config ¶
type Config struct { Skipper middleware.Skipper Level int }
Config is the gzip middleware config
Click to show internal directories.
Click to hide internal directories.