Class: Wee::GenericResponse
- Defined in:
- lib/wee/response.rb
Constant Summary collapse
- EXPIRE_OFFSET =
20 years
3600*24*365*20
- EXPIRES_HEADER =
'Expires'.freeze
Instance Method Summary collapse
-
#initialize(*args) ⇒ GenericResponse
constructor
A new instance of GenericResponse.
Constructor Details
#initialize(*args) ⇒ GenericResponse
Returns a new instance of GenericResponse.
14 15 16 17 |
# File 'lib/wee/response.rb', line 14 def initialize(*args) super self[EXPIRES_HEADER] ||= (Time.now + EXPIRE_OFFSET).rfc822 end |