Documentation
¶
Overview ¶
Package httpcorrelation is the target-oriented path for HTTP correlation. Its public types and behavior retain the released http package identities.
Index ¶
Constants ¶
View Source
const ( // CorrelationHeader carries the logical workflow identifier. CorrelationHeader = legacy.CorrelationHeader // RequestHeader carries the current HTTP hop identifier. RequestHeader = legacy.RequestHeader // CausationHeader carries the immediate parent identifier. CausationHeader = legacy.CausationHeader )
View Source
const ( // ReplaceInvalid discards every inbound value and creates a fresh root. ReplaceInvalid = legacy.ReplaceInvalid // RejectInvalid returns HTTP 400 before application code runs. RejectInvalid = legacy.RejectInvalid )
Variables ¶
View Source
var ErrInvalidOptions = legacy.ErrInvalidOptions
ErrInvalidOptions reports invalid HTTP adapter configuration.
Functions ¶
This section is empty.
Types ¶
type InvalidPolicy ¶
type InvalidPolicy = legacy.InvalidPolicy
InvalidPolicy controls malformed or ambiguous inbound metadata.
type Middleware ¶
type Middleware = legacy.Middleware
Middleware owns explicit HTTP extraction, trust, context, and injection.
func New ¶
func New(factory *correlation.Factory, options Options) (*Middleware, error)
New constructs an HTTP adapter without installing global middleware.
Click to show internal directories.
Click to hide internal directories.