Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEncoder ¶
func SelectEncoder ¶
Types ¶
type EncodingMiddleware ¶
type EncodingMiddleware struct {
Level int
}
GzipMiddleware is responsible for compressing the payload with gzip and setting the proper headers when supported by the client. It must be wrapped by TimerMiddleware for the compression time to be captured. And It must be wrapped by RecorderMiddleware for the compressed BYTES_WRITTEN to be captured.
func (*EncodingMiddleware) MiddlewareFunc ¶
func (mw *EncodingMiddleware) MiddlewareFunc(h rest.HandlerFunc) rest.HandlerFunc
MiddlewareFunc makes GzipMiddleware implement the Middleware interface.
Click to show internal directories.
Click to hide internal directories.