Skip to main content

Module lossy_values

Module lossy_values 

Source
Expand description

Types for tracking event headers whose values contained invalid UTF-8.

Structsยง

LossyValue
A header whose percent-decoded value was not valid UTF-8. Carries the unparsed on-wire value (the percent-encoded source text, always ASCII) so the app can re-decode it (e.g. as Latin-1) or audit it instead of being stuck with the U+FFFD-substituted string in headers.
LossyValues
Header keys whose percent-decoded value contained invalid UTF-8 and was decoded lossily (U+FFFD substituted). Empty in the normal case.