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

Struct Interceptor

extension/transport/sidecar/interceptor.go:55–58  ·  view source on GitHub ↗

Interceptor rewrites requests for the sidecar proxy.

Source from the content-addressed store, hash-verified

53
54// Interceptor rewrites requests for the sidecar proxy.
55type Interceptor struct {
56 key []byte // HMAC signing key
57 sidecarHost string // sidecar host:port for URL rewriting
58}
59
60// PreRoundTrip rewrites the request for sidecar routing when it carries a
61// sentinel token. Requests without a sentinel token (e.g. pre-signed download

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected