Open f8al opened 1 month ago
ooo this is a cool feature actually because it is technically a different type of output
I would suggest we do something like this
{
site,
scan_date:
outcome:
{
expected,
missing,
present,
}
}
that would make the object easier to key into take advantage of that date object and account for our three existing outcomes self.does_exist = {} self.not_exist = {} self.more_exist = {}
need a command line option for having the output be a json object with the domain, present headers, and missing headers
structure should be close to the below
{"https://www.google.com/": {"present": {"X-Frame-Options": "SAMEORIGIN", "X-Content-Type-Options": "nosniff", "Strict-Transport-Security": "max-age=31536000"}, "missing": ["Content-Security-Policy", "Referrer-Policy", "Permissions-Policy", "Cross-Origin-Embedder-Policy", "Cross-Origin-Resource-Policy", "Cross-Origin-Opener-Policy"]}}