MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / Write

Method Write

internal/httpapi/middleware.go:108–113  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

106}
107
108func (cw *challengeWriter) Write(b []byte) (int, error) {
109 if !cw.written {
110 cw.WriteHeader(http.StatusOK)
111 }
112 return cw.ResponseWriter.Write(b)
113}
114
115// Hijack forwards to the underlying ResponseWriter so the WebSocket upgrade
116// (root.Get("/v1/agents/{address}/ws", …), which this root middleware also

Callers 15

cursorMACFunction · 0.45
testServerFunction · 0.45
signMethod · 0.45
VerifyDownloadMethod · 0.45
HashRequestFunction · 0.45
htmlToTextFunction · 0.45
SignFunction · 0.45
VerifyWithMaxAgeFunction · 0.45
sendOnceMethod · 0.45
verifyHMACFunction · 0.45

Calls 1

WriteHeaderMethod · 0.95

Tested by 8

testServerFunction · 0.36
TestVerifyHMAC_positiveFunction · 0.36
verifyHMACv1Function · 0.36
sendSMTPFunction · 0.36