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

Method ValidateBody

net/signed/scopedConfig.go:198–228  ·  view source on GitHub ↗

ValidateBody uses the HTTPParser to extract the hash signature. It then hashes the body and compares the hash of the body with the hash value found in the HTTP header. Hash comparison via constant time.

(r *http.Request)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 5

isMethodAllowedMethod · 0.95
CalculateHashMethod · 0.95
HasMethod · 0.65
ParseMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected