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

Interface Interceptor

extension/transport/types.go:36–38  ·  view source on GitHub ↗

Interceptor defines network-layer customization via a pre/post hook pair. The built-in transport chain always executes between PreRoundTrip and the returned post function, and cannot be skipped or overridden by the extension. PreRoundTrip is called before the built-in chain. Use it to add custom he

Source from the content-addressed store, hash-verified

34// a replayable body (e.g. via req.GetBody) before returning, otherwise the
35// built-in chain will see an exhausted stream.
36type Interceptor interface {
37 PreRoundTrip(req *http.Request) func(resp *http.Response, err error)
38}
39
40// AbortableInterceptor is an optional extension of Interceptor that lets an
41// extension reject a request before the built-in chain runs. Extensions that

Implementers 6

stubTransportImplinternal/cmdutil/transport_test.go
headerCapturingInterceptorinternal/cmdutil/transport_test.go
buildTamperingInterceptorinternal/cmdutil/transport_test.go
abortingInterceptorinternal/cmdutil/transport_test.go
stubInterceptorextension/transport/registry_test.go
Interceptorextension/transport/sidecar/intercepto

Calls

no outgoing calls

Tested by

no test coverage detected