Documentation ¶
Index ¶
Constants ¶
View Source
const ( HeaderAcceptEncoding = "Accept-Encoding" HeaderContentEncoding = "Content-Encoding" )
Variables ¶
View Source
var ( // AcceptAllEncodings 接受所有的编码格式 AcceptAllEncodings = AcceptEncoding("zstd", "br", "gzip", "deflate", "snappy", "s2") // DefaultEncodings 默认接受所有的编码格式 DefaultEncodings = AcceptEncoding("gzip", "deflate", "br") )
Functions ¶
This section is empty.
Types ¶
type HeaderOption ¶
func AcceptEncoding ¶
func AcceptEncoding(acceptEncodings ...string) HeaderOption
AcceptEncoding 接受编码
Click to show internal directories.
Click to hide internal directories.