ssllabs.hstspreload

class ssllabs.hstspreload.HstsPreload(data)[source]

Bases: ssllabs.object.Object

The HSTS Preload, accessed from ssllabs.endpointdetails.EndpointDetails.hstsPreload().

The HstsPreload object contains preload HSTS status of one source for the current hostname. Preload checks are done for the current hostname, not for a domain name. For example, a hostname “www.example.com” tested in SSL Labs would come back as “present” if there is an entry for “example.com” with includeSubDomains enabled or if there is an explicit entry for “www.example.com”.

error

error message, when status is “error”

source

source name

sourceTime

datetime, when the preload database was retrieved

status

preload status:

  • error
  • unknown - either before the preload status is checked, or if the information is not available for some reason.
  • absent
  • present