MCPcopy
hub / github.com/cortesi/devd / Write

Method Write

reverseproxy/reverseproxy.go:233–237  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

231}
232
233func (m *maxLatencyWriter) Write(p []byte) (int, error) {
234 m.Lock()
235 defer m.Unlock()
236 return m.dst.Write(p)
237}
238
239func (m *maxLatencyWriter) flushLoop() {
240 t := time.NewTicker(m.latency)

Callers 4

TestReverseProxyFunction · 0.45
TestXForwardedForFunction · 0.45
TestReverseProxyQueryFunction · 0.45

Calls

no outgoing calls

Tested by 4

TestReverseProxyFunction · 0.36
TestXForwardedForFunction · 0.36
TestReverseProxyQueryFunction · 0.36