MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / SupportEncoding

Function SupportEncoding

internal/compressions/utils.go:66–71  ·  view source on GitHub ↗

SupportEncoding 检查是否支持某个编码

(encoding string)

Source from the content-addressed store, hash-verified

64
65// SupportEncoding 检查是否支持某个编码
66func SupportEncoding(encoding string) bool {
67 return encoding == ContentEncodingBr ||
68 encoding == ContentEncodingGzip ||
69 encoding == ContentEncodingDeflate ||
70 encoding == ContentEncodingZSTD
71}
72
73// WrapHTTPResponse 包装http.Response对象
74func WrapHTTPResponse(resp *http.Response) {

Callers 3

PrepareWebPMethod · 0.92
PrepareCompressionMethod · 0.92
WrapHTTPResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected