(h *fasthttp.ResponseHeader)
| 370 | } |
| 371 | |
| 372 | func headerToMultiMap(h *fasthttp.ResponseHeader) map[string][]string { |
| 373 | m := make(map[string][]string) |
| 374 | h.VisitAll(func(key, value []byte) { |
| 375 | k := string(key) |
| 376 | v := string(value) |
| 377 | m[k] = append(m[k], v) |
| 378 | }) |
| 379 | return m |
| 380 | } |
| 381 | |
| 382 | func analyzeCacheIndicator(headers http.Header) (indicators []string) { |
| 383 | customCacheHeader := strings.ToLower(Config.CacheHeader) |
no outgoing calls
no test coverage detected