Methods
A
Constants
EXPECTED = 'max-age=15552000'
 
EXPECTED_WITH_SUBDOMAINS = 'max-age=15552000; includeSubDomains'
 
Instance Public methods
assert_hsts(expected, url: 'https://example.org', hsts: { subdomains: true }, headers: {})
# File actionpack/test/dispatch/ssl_test.rb, line 110
def assert_hsts(expected, url: 'https://example.org', hsts: { subdomains: true }, headers: {})
  self.app = build_app ssl_options: { hsts: hsts }, headers: headers
  get url
  assert_equal expected, response.headers['Strict-Transport-Security']
end