Class: Wee::GenericResponse
Direct Known Subclasses
Constant Summary collapse
- EXPIRE_OFFSET =
20 years
3600*24*365*20
Constants inherited from Response
Instance Attribute Summary
Attributes inherited from Response
Instance Method Summary collapse
-
#initialize(mime_type = 'text/html', content = '') ⇒ GenericResponse
constructor
A new instance of GenericResponse.
Methods inherited from Response
#<<, #content_type, #content_type=, #cookies, #cookies?
Constructor Details
#initialize(mime_type = 'text/html', content = '') ⇒ GenericResponse
Returns a new instance of GenericResponse.
42 43 44 45 |
# File 'lib/wee/response.rb', line 42 def initialize(mime_type = 'text/html', content='') super @header['Expires'] = (Time.now + EXPIRE_OFFSET).rfc822 end |