Optional header row
02The first row may contain names for the fields.
DIAGRAMRead RFC section 2 ↗
RFC 4180 · § 2EXAMPLE
3 / 3
03
Apply header policy
Use the declared or agreed interpretation.
Key idea: The header should have the same field count as the data rows.
Rules & examples
The header should have the same field count as the data rows.
- The header should have the same field count as the data rows.
- The optional text/csv header parameter indicates present or absent.
- A header is a convention; do not automatically treat every first row as data or metadata.
Examples are illustrative. Consult the linked RFC and its errata for implementation details.
Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background
First, agree how to read the message.
An encoding tells a reader how to interpret bytes. A format tells it how values fit together. Correctly reading a value does not make that value trustworthy.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.
Read the updated RFC section ↗