Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 1156 Bytes
1 | require 'rack/request' |
2 | require 'rack/cache/cachecontrol' |
3 | |
4 | module Rack::Cache |
5 | |
6 | # Provides access to the HTTP request. The +request+ and +original_request+ |
7 | # objects exposed by the Core caching engine are instances of this class. |
8 | # |
9 | # Request objects respond to a variety of convenience methods, including |
10 | # everything defined by Rack::Request as well as the Headers and |
11 | # RequestHeaders modules. |
12 | class Request < Rack::Request |
13 | # The HTTP request method. This is the standard implementation of this |
14 | # method but is respecified here due to libraries that attempt to modify |
15 | # the behavior to respect POST tunnel method specifiers. We always want |
16 | # the real request method. |
17 | def request_method |
18 | @env['REQUEST_METHOD'] |
19 | end |
20 | |
21 | # A CacheControl instance based on the request's Cache-Control header. |
22 | def cache_control |
23 | @cache_control ||= CacheControl.new(env['HTTP_CACHE_CONTROL']) |
24 | end |
25 | |
26 | # True when the Cache-Control/no-cache directive is present or the |
27 | # Pragma header is set to no-cache. |
28 | def no_cache? |
29 | cache_control['no-cache'] || |
30 | env['HTTP_PRAGMA'] == 'no-cache' |
31 | end |
32 | end |
33 | end |