Class: Qeweney::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/tp2/request_extensions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#start_stampObject

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


19
20
21
# File 'lib/tp2/request_extensions.rb', line 19

def set_cookie(*)
  adapter.set_cookie(*)
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