MCPcopy
hub / github.com/caddyserver/caddy / etagHasher

Function etagHasher

admin.go:990–990  ·  view source on GitHub ↗

etagHasher returns the hasher we used on the config to both produce and verify ETags.

()

Source from the content-addressed store, hash-verified

988// etagHasher returns the hasher we used on the config to both
989// produce and verify ETags.
990func etagHasher() hash.Hash { return xxhash.New() }
991
992// makeEtag returns an Etag header value (including quotes) for
993// the given config path and hash of contents at that path.

Callers 3

handleConfigFunction · 0.85
TestETagsFunction · 0.85
changeConfigFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestETagsFunction · 0.68