method

new

new(app, options = {})
public

No documentation available.

# File actionpack/lib/action_dispatch/middleware/ssl.rb, line 9
    def initialize(app, options = {})
      @app = app

      @hsts = options.fetch(:hsts, {})
      @hsts = {} if @hsts == true
      @hsts = self.class.default_hsts_options.merge(@hsts) if @hsts

      @host    = options[:host]
      @port    = options[:port]
    end