Compress

func CompressFilter

func CompressFilter(c *Controller, fc []Filter)

type CompressResponseWriter

type CompressResponseWriter struct {
    http.ResponseWriter
    // contains filtered or unexported fields
}

func (*CompressResponseWriter) DetectCompressionType

func (c *CompressResponseWriter) DetectCompressionType(req *Request, resp *Response)

func (*CompressResponseWriter) Write

func (c *CompressResponseWriter) Write(b []byte) (int, error)

func (*CompressResponseWriter) WriteHeader

func (c *CompressResponseWriter) WriteHeader(status int)

type WriteFlusher

type WriteFlusher interface {
    Write([]byte) (int, error)
    Flush() error
}