Class: Rack::CommonCookies
- Inherits:
-
Object
- Object
- Rack::CommonCookies
- Defined in:
- lib/rack/contrib/common_cookies.rb
Overview
Rack middleware to use common cookies across domain and subdomains.
Constant Summary collapse
- DOMAIN_REGEXP =
/([^.]*)\.([^.]*|..\...|...\...|..\....)$/
- LOCALHOST_OR_IP_REGEXP =
/^([\d.]+|localhost)$/
- PORT =
/:\d+$/
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ CommonCookies
constructor
A new instance of CommonCookies.
Constructor Details
#initialize(app) ⇒ CommonCookies
Returns a new instance of CommonCookies.
13 14 15 |
# File 'lib/rack/contrib/common_cookies.rb', line 13 def initialize(app) @app = app end |