MCPcopy Index your code
hub / github.com/coder/coder / matchAcceptEncoding

Function matchAcceptEncoding

coderd/cachecompress/compress.go:382–389  ·  view source on GitHub ↗
(accepted []string, encoding string)

Source from the content-addressed store, hash-verified

380}
381
382func matchAcceptEncoding(accepted []string, encoding string) bool {
383 for _, v := range accepted {
384 if strings.Contains(v, encoding) {
385 return true
386 }
387 }
388 return false
389}
390
391// An EncoderFunc is a function that wraps the provided io.Writer with a
392// streaming compression algorithm and returns it.

Callers 1

selectEncoderMethod · 0.85

Calls 1

ContainsMethod · 0.45

Tested by

no test coverage detected