MCPcopy
hub / github.com/go-chi/chi / matchAcceptEncoding

Function matchAcceptEncoding

middleware/compress.go:240–247  ·  view source on GitHub ↗
(accepted []string, encoding string)

Source from the content-addressed store, hash-verified

238}
239
240func matchAcceptEncoding(accepted []string, encoding string) bool {
241 for _, v := range accepted {
242 if strings.Contains(v, encoding) {
243 return true
244 }
245 }
246 return false
247}
248
249// An EncoderFunc is a function that wraps the provided io.Writer with a
250// streaming compression algorithm and returns it.

Callers 1

selectEncoderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected