Documentation
¶
Overview ¶
Package httpidentity applies B-leg User-Agent identity policy at the final HTTP wire boundary for approved hosted connectors.
It clones requests before mutation, resolves identity from identity.FieldPolicy plus optional call-scoped client UA in context, and never mutates the shared upstream client passed from the composition root.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapClient ¶
WrapClient returns a shallow clone of client whose Transport applies policy. The input client is never mutated. Nil client yields nil.
Types ¶
type Transport ¶
type Transport struct {
Base http.RoundTripper
Policy identity.FieldPolicy
}
Transport is an http.RoundTripper that sets, replaces, or omits User-Agent according to Policy on every outbound request.
Click to show internal directories.
Click to hide internal directories.