Class: SSLyze::XML::HTTPHeaders
- Defined in:
- lib/sslyze/xml/http_headers.rb,
lib/sslyze/xml/http_headers/http_public_key_pinning.rb,
lib/sslyze/xml/http_headers/http_strict_transport_security.rb
Overview
Represents the <http_headers>
XML element.
Defined Under Namespace
Classes: HTTPPublicKeyPinning, HTTPStrictTransportSecurity
Instance Method Summary collapse
-
#http_public_key_pinning ⇒ HTTPPublicKeyPinning?
(also: #public_key_pinning)
HTTP Public-Key-Pinning header information.
-
#http_strict_transport_security ⇒ HTTPStrictTransportSecurity?
(also: #strict_transport_security)
HTTP Strict-Transport-Security header information.
Methods inherited from Plugin
Methods included from Attributes::Exception
Methods included from Attributes::Title
Constructor Details
This class inherits a constructor from SSLyze::XML::Plugin
Instance Method Details
#http_public_key_pinning ⇒ HTTPPublicKeyPinning? Also known as: public_key_pinning
HTTP Public-Key-Pinning header information.
32 33 34 35 36 |
# File 'lib/sslyze/xml/http_headers.rb', line 32 def http_public_key_pinning @http_public_key_pinning ||= if (element = @node.at_xpath('httpPublicKeyPinning')) HTTPPublicKeyPinning.new(element) end end |
#http_strict_transport_security ⇒ HTTPStrictTransportSecurity? Also known as: strict_transport_security
HTTP Strict-Transport-Security header information.
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 |