(hdr http.Header, target string)
| 478 | } |
| 479 | |
| 480 | func hasVaryValue(hdr http.Header, target string) bool { |
| 481 | for _, vary := range hdr.Values("Vary") { |
| 482 | for val := range strings.SplitSeq(vary, ",") { |
| 483 | if strings.EqualFold(strings.TrimSpace(val), target) { |
| 484 | return true |
| 485 | } |
| 486 | } |
| 487 | } |
| 488 | return false |
| 489 | } |
| 490 | |
| 491 | // AcceptedEncodings returns the list of encodings that the |
| 492 | // client supports, in descending order of preference. |
no outgoing calls
no test coverage detected