MCPcopy Create free account
hub / github.com/willnorris/imageproxy / String

Method String

third_party/httpcache/httpcache.go:29–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29func (cc CacheControl) String() string {
30 parts := make([]string, 0, len(cc))
31 for k, v := range cc {
32 if v == "" {
33 parts = append(parts, k)
34 } else {
35 parts = append(parts, k+"="+v)
36 }
37 }
38 sort.StringSlice(parts).Sort()
39 return strings.Join(parts, ", ")
40}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected