--------------------------------------------------------------------------- extensionMiddleware — PreRoundTripE abort path --------------------------------------------------------------------------- abortingInterceptor implements exttransport.AbortableInterceptor and records invocation of the pre an
| 413 | // assert middleware-level integration; pure *AbortError behavior |
| 414 | // (Error/Unwrap/Is/As) is covered in extension/transport/errors_test.go. |
| 415 | type 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. |
nothing calls this directly
no outgoing calls
no test coverage detected