MCPcopy
hub / github.com/snyk/cli / Interceptor

Interface Interceptor

cliv2/internal/proxy/interceptor/interceptor.go:11–14  ·  view source on GitHub ↗

Interceptor is an interface that defines self-registering MITM-style handlers for interacting with requests send to the go proxy from the legacy CLI. Add a new interceptor by implementing the Interceptor interface and adding it to the GetRegisteredInterceptors function.

Source from the content-addressed store, hash-verified

9// Add a new interceptor by implementing the Interceptor interface and adding it to
10// the GetRegisteredInterceptors function.
11type Interceptor interface {
12 GetHandler() goproxy.FuncReqHandler
13 GetCondition() goproxy.ReqCondition
14}

Callers 6

StartMethod · 0.65
StartMethod · 0.65

Implementers 3

networkInjectorcliv2/internal/proxy/interceptor/netwo
legacyFeatureFlagInterceptorcliv2/internal/proxy/interceptor/legac
v1AnalyticsInterceptorcliv2/internal/proxy/interceptor/v1_an

Calls

no outgoing calls

Tested by

no test coverage detected