Bounded parsing
One response per file, strict header-name syntax and a 64 KiB cap keep the input contract explicit.
Day 072 / Security / HTTP Headers
An offline Python CLI that inventories six response headers without printing their raw values or assigning a security score.
One response per file, strict header-name syntax and a 64 KiB cap keep the input contract explicit.
Names, status, counts and explanations appear in JSON; raw header values do not.
Presence is not proof of effective policy. HTTPS context, CSP directives and repeated-field semantics need separate review.
Offline header inventory
Six selected response fields
Missing and empty distinctions
Repeated-field review notes
Thirteen passing tests
Argparse, pathlib, regex and JSON provide a dependency-free CLI.
Tests cover casing, duplicate fields, missing and empty values, malformed input, bounds and omission of raw values.