(accepted []string, encoding string)
| 238 | } |
| 239 | |
| 240 | func 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. |