Class: ActionDispatch::SSL
Relationships & Source Files | |
Inherits: | Object |
Defined in: | actionpack/lib/action_dispatch/middleware/ssl.rb |
Constant Summary
Class Method Summary
- .default_hsts_options
- .new(app, options = {}) ⇒ SSL constructor
Instance Method Summary
Constructor Details
.new(app, options = {}) ⇒ SSL
# File 'actionpack/lib/action_dispatch/middleware/ssl.rb', line 9
def initialize(app, = {}) @app = app @hsts = .fetch(:hsts, {}) @hsts = {} if @hsts == true @hsts = self.class. .merge(@hsts) if @hsts @host = [:host] @port = [:port] end
Class Method Details
.default_hsts_options
[ GitHub ]# File 'actionpack/lib/action_dispatch/middleware/ssl.rb', line 5
def self. { :expires => YEAR, :subdomains => false } end