(accepted []string, encoding string)
| 380 | } |
| 381 | |
| 382 | func 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. |