class
   Marten::Conf::GlobalSettings::SSLRedirect
   
  - Marten::Conf::GlobalSettings::SSLRedirect
 - Reference
 - Object
 
Overview
Allows to configure SSL redirect-related settings.
Defined in:
marten/conf/global_settings/ssl_redirect.crInstance Method Summary
- 
        #exempted_paths : Array(Regex | String)
        
          
Returns an array of paths that should be exempted from HTTPS redirects.
 - 
        #exempted_paths=(paths : Array(Regex) | Array(String) | Array(Regex | String))
        
          
Allows to set the array of paths that should be exempted from HTTPS redirects.
 - 
        #host : String?
        
          
Returns the host that should be used when redirecting non-HTTPS requests.
 - 
        #host=(host : Nil | String)
        
          
Allows to set the host that should be used when redirecting non-HTTPS requests.
 
Instance Method Detail
        
        def exempted_paths : Array(Regex | String)
        #
      
      
        Returns an array of paths that should be exempted from HTTPS redirects.
        
        def exempted_paths=(paths : Array(Regex) | Array(String) | Array(Regex | String))
        #
      
      
        Allows to set the array of paths that should be exempted from HTTPS redirects.
Both strings and regexes are accepted.
        
        def host=(host : Nil | String)
        #
      
      
        Allows to set the host that should be used when redirecting non-HTTPS requests.
If set to nil, the HTTPS redirect will be performed using the request's host.