HSTS (HTTP Strict Transport Security) is a response header that tells a browser to use only HTTPS for a site for a set time. After one visit, the browser upgrades every later request itself, so an attacker cannot downgrade the connection to HTTP.
The header only counts when it is sent over HTTPS. For the other headers that protect a site, such as Content-Security-Policy and X-Frame-Options, use the Security Headers Checker.