Interceptor rewrites requests for the sidecar proxy.
| 53 | |
| 54 | // Interceptor rewrites requests for the sidecar proxy. |
| 55 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected