MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / OnStreamChunk

Method OnStreamChunk

sdk/cliproxy/pipeline/context.go:55–59  ·  view source on GitHub ↗

OnStreamChunk implements Hook.

(ctx context.Context, execCtx *Context, chunk cliproxyexecutor.StreamChunk)

Source from the content-addressed store, hash-verified

53
54// OnStreamChunk implements Hook.
55func (h HookFunc) OnStreamChunk(ctx context.Context, execCtx *Context, chunk cliproxyexecutor.StreamChunk) {
56 if h.Stream != nil {
57 h.Stream(ctx, execCtx, chunk)
58 }
59}
60
61// RoundTripperProvider allows injection of custom HTTP transports per auth entry.
62type RoundTripperProvider interface {

Callers

nothing calls this directly

Calls 1

StreamMethod · 0.80

Tested by

no test coverage detected