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

Struct abortingInterceptor

internal/cmdutil/transport_test.go:415–422  ·  view source on GitHub ↗

--------------------------------------------------------------------------- extensionMiddleware — PreRoundTripE abort path --------------------------------------------------------------------------- abortingInterceptor implements exttransport.AbortableInterceptor and records invocation of the pre an

Source from the content-addressed store, hash-verified

413// assert middleware-level integration; pure *AbortError behavior
414// (Error/Unwrap/Is/As) is covered in extension/transport/errors_test.go.
415type abortingInterceptor struct {
416 reason error // if non-nil, PreRoundTripE returns this to abort
417 nilPost bool // if true, PreRoundTripE returns a nil post func
418 preECalled bool
419 postCalled bool
420 postResp *http.Response
421 postErr error
422}
423
424// PreRoundTrip is a no-op that satisfies the legacy Interceptor method; the
425// middleware never calls it when PreRoundTripE is present.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected