MCPcopy Create free account
hub / github.com/corestoreio/pkg / CalculateHash

Method CalculateHash

net/signed/scopedConfig.go:158–184  ·  view source on GitHub ↗

CalculateHash calculates the hash sum from the request body. The full body gets read into a buffer. This buffer gets assigned to the r.Body to make a read possible for the next consumer.

(r *http.Request)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

ValidateBodyMethod · 0.95

Calls 6

GetMethod · 0.65
CloseMethod · 0.65
WriteMethod · 0.65
PutMethod · 0.45
ReadMethod · 0.45
SumMethod · 0.45

Tested by

no test coverage detected