Documentation
¶
Overview ¶
Package httptransport exposes an additive, request-scoped observation seam. A decorator wraps the transport already selected by the executor: it must not replace provider fingerprints, proxy routing, pools, or HTTP protocol policy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decorate ¶
Decorate applies a context decorator AFTER transport selection. With no decorator, the exact original client is returned. Only the client value is copied; the original selected transport/pool and all client policy survive.
func InheritDecorator ¶
InheritDecorator copies a decorator from fallback into ctx when ctx does not already specify a decorator or explicit suppression via WithoutDecorator.
func WithDecorator ¶
WithDecorator attaches a decorator to one execution context. It does not enable request logging or modify executor credential/selection policy.
Types ¶
type Decorator ¶
type Decorator func(next http.RoundTripper) http.RoundTripper
Decorator may wrap next to observe final HTTP requests and response bodies. It is called during client construction; implementations must be concurrency safe, must delegate to next, and must not retain secrets or consume bodies. A decorator does not observe WebSocket messages after an upgrade.