Documentation
¶
Overview ¶
Package httpheader owns shared HTTP field grammar and static header ownership.
Index ¶
- Constants
- func CanonicalName(name string) (string, error)
- func ReservedApplicationName(name string) bool
- func ReservedRequestName(name string) bool
- func ValidateName(name string) error
- func ValidateRequestName(name string) error
- func ValidateRequestValue(value string) error
- func ValidateValue(value string) error
Constants ¶
const ( IdempotencyKey = "Idempotency-Key" RequestID = "X-Request-ID" TraceParent = "traceparent" TraceState = "tracestate" )
const MaxNameBytes = 256
const MaxValueBytes = 8192
Variables ¶
This section is empty.
Functions ¶
func CanonicalName ¶
CanonicalName validates before applying Go's conventional header casing.
func ReservedApplicationName ¶
ReservedApplicationName identifies the existing proxy/security X-* ownership shared by request declarations and application response headers.
func ReservedRequestName ¶
ReservedRequestName matches static framework/transport ownership regardless of casing. Configured proxy headers and third-party middleware inputs must also not be declared, but are not inferred by this static policy.
func ValidateName ¶
ValidateName checks the bounded ASCII HTTP field-name grammar.
func ValidateRequestName ¶
ValidateRequestName rejects invalid names and static reserved request inputs.
func ValidateRequestValue ¶
ValidateRequestValue restricts typed request values to portable ASCII and HTAB. Framing owns outer whitespace normalization; scalar codecs own field grammar.
func ValidateValue ¶
ValidateValue preserves native header values, rejecting controls except HTAB.
Types ¶
This section is empty.