Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Gzip ¶
func Gzip() goyave.Middleware
Gzip compresses HTTP responses with default compression level for clients that support it via the 'Accept-Encoding' header.
func GzipLevel ¶
func GzipLevel(level int) goyave.Middleware
GzipLevel compresses HTTP responses with specified compression level for clients that support it via the 'Accept-Encoding' header.
The compression level should be gzip.DefaultCompression, gzip.NoCompression, or any integer value between gzip.BestSpeed and gzip.BestCompression inclusive.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.