Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithCompressor ¶
func WithCompressor() mw.Middleware
WithCompressor is a middleware applies the GZIP or deflate algorithm on the bytes writer. GZIP or deflate usage depends on the HTTP Accept Encoding header. Flush(), Hijack() and CloseNotify() interfaces will be preserved. No header set, no compression takes place. GZIP has priority before deflate.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.