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

Method Write

net/signed/header_signature.go:71–94  ·  view source on GitHub ↗

Write writes the content signature header using an encoder, which can be hex or base64. Signature parameter is an encoded digital signature generated by the client. The client uses the `algorithm` and `headers` request parameters to form a canonicalized `signing string`. This `signing string` is

(w http.ResponseWriter, signature []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestSignature_WriteFunction · 0.95
BenchmarkSignature_WriteFunction · 0.95

Calls 9

HeaderKeyMethod · 0.95
WriteStringMethod · 0.80
WriteRuneMethod · 0.80
GetMethod · 0.65
WriteMethod · 0.65
SetMethod · 0.65
StringMethod · 0.65
HeaderMethod · 0.45
PutMethod · 0.45

Tested by 2

TestSignature_WriteFunction · 0.76
BenchmarkSignature_WriteFunction · 0.76