MCPcopy Index your code
hub / github.com/keploy/keploy / RecordOutgoing

Method RecordOutgoing

pkg/agent/proxy/integrations/http/http.go:123–128  ·  view source on GitHub ↗

RecordOutgoing dispatches to the V2 path when the supervisor has attached a session via RecordSession.V2, and to the legacy path otherwise. Keeping both paths live lets the dispatcher / rollback knob (KEPLOY_NEW_RELAY) swap between them without code changes.

(ctx context.Context, session *integrations.RecordSession)

Source from the content-addressed store, hash-verified

121// otherwise. Keeping both paths live lets the dispatcher / rollback
122// knob (KEPLOY_NEW_RELAY) swap between them without code changes.
123func (h *HTTP) RecordOutgoing(ctx context.Context, session *integrations.RecordSession) error {
124 if session != nil && session.V2 != nil {
125 return h.recordV2(ctx, session.V2)
126 }
127 return h.recordLegacy(ctx, session)
128}
129
130// recordLegacy is the original RecordOutgoing body preserved unchanged.
131// It consumes the legacy RecordSession fields (Ingress / Egress / Mocks)

Callers

nothing calls this directly

Calls 2

recordV2Method · 0.95
recordLegacyMethod · 0.95

Tested by

no test coverage detected