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

Struct headerCapturingInterceptor

internal/cmdutil/transport_test.go:193–196  ·  view source on GitHub ↗

headerCapturingInterceptor sets custom headers in PreRoundTrip and records whether PostRoundTrip was called, to verify execution order.

Source from the content-addressed store, hash-verified

191// headerCapturingInterceptor sets custom headers in PreRoundTrip and records
192// whether PostRoundTrip was called, to verify execution order.
193type headerCapturingInterceptor struct {
194 preCalled bool
195 postCalled bool
196}
197
198func (h *headerCapturingInterceptor) PreRoundTrip(req *http.Request) func(*http.Response, error) {
199 h.preCalled = true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected