MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / Write

Method Write

internal/server/server.go:1306–1311  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

1304}
1305
1306func (sw *statusWriter) Write(b []byte) (int, error) {
1307 if sw.status >= 500 {
1308 sw.body.Write(b) //nolint:errcheck
1309 }
1310 return sw.ResponseWriter.Write(b)
1311}
1312
1313// Flush 转发 http.Flusher,保证 SSE 等流式端点可以正常推送数据。
1314func (sw *statusWriter) Flush() {

Callers 15

readSSEFramesFunction · 0.80
signMethod · 0.80
shadowsocksLinkFunction · 0.80
TestSyncUsage_PushPathFunction · 0.80
deriveSecretFunction · 0.80
hmacSHA256BytesFunction · 0.80
bridgeSSEFunction · 0.80
handleSubMethod · 0.80
TestReadToken_FromStdinFunction · 0.80
handleMethod · 0.80

Calls

no outgoing calls