Method: SSLyze::XML::HTTPHeaders#http_strict_transport_security

Defined in:
lib/sslyze/xml/http_headers.rb

#http_strict_transport_securityHTTPStrictTransportSecurity? Also known as: strict_transport_security

HTTP Strict-Transport-Security header information.

Returns:

Since:

  • 1.0.0



19
20
21
22
23
# File 'lib/sslyze/xml/http_headers.rb', line 19

def http_strict_transport_security
  @http_strict_transport_security ||= if (element = @node.at_xpath('httpStrictTransportSecurity'))
                                        HTTPStrictTransportSecurity.new(element)
                                      end
end