Expand description
Message validation — the checks that come after parsing.
A message can frame perfectly, have every header parse, and still be one no element may
act on: required headers missing, a CSeq naming a different method than the request
line, a version nobody speaks. RFC 4475 files these under the application layer, and so do
we, for a practical reason: answering 400 requires having parsed the message that is
wrong, and forwarding requires not caring.
Validation therefore returns a list of findings rather than failing at the first. An element picks a response from them; a proxy may ignore several of them entirely.
Enums§
- Finding
- Something wrong with a message that parsed.
Functions§
- validate
- Validate whichever kind of message this is.
- validate_
request - Validate a request against RFC 3261 §8.1.1.
- validate_
response - Validate a response.