Class: Qeweney::Request
- Inherits:
-
Object
- Object
- Qeweney::Request
- Defined in:
- lib/tp2/request_extensions.rb
Instance Attribute Summary collapse
-
#start_stamp ⇒ Object
Returns the value of attribute start_stamp.
Instance Method Summary collapse
- #respond_with_static_file(path, etag, last_modified, opts) ⇒ Object
- #set_cookie ⇒ Object
- #set_response_headers(headers) ⇒ Object
Instance Attribute Details
#start_stamp ⇒ Object
Returns the value of attribute start_stamp.
4 5 6 |
# File 'lib/tp2/request_extensions.rb', line 4 def start_stamp @start_stamp end |
Instance Method Details
#respond_with_static_file(path, etag, last_modified, opts) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/tp2/request_extensions.rb', line 6 def respond_with_static_file(path, etag, last_modified, opts) cache_headers = (etag || last_modified) ? { 'etag' => etag, 'last-modified' => last_modified } : {} adapter.respond_with_static_file(self, path, opts, cache_headers) end |
#set_cookie ⇒ Object
19 20 21 |
# File 'lib/tp2/request_extensions.rb', line 19 def (*) adapter.(*) end |
#set_response_headers(headers) ⇒ Object
15 16 17 |
# File 'lib/tp2/request_extensions.rb', line 15 def set_response_headers(headers) adapter.set_response_headers(headers) end |