package
2.4.0
Repository: https://github.com/issue9/middleware.git
Documentation: pkg.go.dev

# Functions

New 构建一个支持压缩的中间件 types 表示需要进行压缩处理的 mimetype 类型,可以是以下格式: - application/json 具体类型; - text* 表示以 text 开头的所有类型; - * 表示所有类型,一旦指定此值,则其它设置都将被忽略;.
NewBrotli 新建 br 算法.
NewDeflate 新建 deflate 算法.
NewGzip 新建 gzip 算法.

# Structs

Compress 提供压缩功能的中件间.

# Type aliases

WriterFunc 定义了将一个 io.Writer 声明为具有压缩功能的 io.WriteCloser.