mongrel_esi 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README +10 -9
- data/doc/rdoc/classes/ESI/Cache.html +10 -10
- data/doc/rdoc/classes/ESI/Cache.src/{M000085.html → M000087.html} +0 -0
- data/doc/rdoc/classes/ESI/Cache.src/{M000086.html → M000088.html} +0 -0
- data/doc/rdoc/classes/ESI/Config.html +43 -62
- data/doc/rdoc/classes/ESI/Config.src/M000049.html +18 -0
- data/doc/rdoc/classes/ESI/Config.src/{M000059.html → M000050.html} +5 -5
- data/doc/rdoc/classes/ESI/Config.src/M000051.html +35 -0
- data/doc/rdoc/classes/ESI/Config.src/M000052.html +27 -5
- data/doc/rdoc/classes/ESI/Config.src/M000053.html +10 -5
- data/doc/rdoc/classes/ESI/Config.src/M000054.html +5 -22
- data/doc/rdoc/classes/ESI/Config.src/M000055.html +7 -25
- data/doc/rdoc/classes/ESI/Config.src/M000056.html +11 -10
- data/doc/rdoc/classes/ESI/Config/CacheConfig.html +25 -25
- data/doc/rdoc/classes/ESI/Config/CacheConfig.src/{M000068.html → M000060.html} +6 -5
- data/doc/rdoc/classes/ESI/Config/CacheConfig.src/{M000065.html → M000061.html} +5 -5
- data/doc/rdoc/classes/ESI/Config/CacheConfig.src/{M000066.html → M000062.html} +4 -4
- data/doc/rdoc/classes/ESI/Config/CacheConfig.src/{M000067.html → M000063.html} +4 -4
- data/doc/rdoc/classes/ESI/Config/CacheConfig.src/M000064.html +5 -6
- data/doc/rdoc/classes/ESI/Config/ConfigRouter.html +15 -15
- data/doc/rdoc/classes/ESI/Config/ConfigRouter.src/{M000061.html → M000057.html} +5 -5
- data/doc/rdoc/classes/ESI/Config/ConfigRouter.src/{M000062.html → M000058.html} +7 -7
- data/doc/rdoc/classes/ESI/Config/ConfigRouter.src/{M000063.html → M000059.html} +7 -7
- data/doc/rdoc/classes/ESI/Dispatcher.html +17 -15
- data/doc/rdoc/classes/ESI/Dispatcher.src/{M000087.html → M000092.html} +4 -7
- data/doc/rdoc/classes/ESI/Dispatcher.src/M000093.html +27 -0
- data/doc/rdoc/classes/ESI/Fragment.html +15 -15
- data/doc/rdoc/classes/ESI/Fragment.src/{M000100.html → M000111.html} +0 -0
- data/doc/rdoc/classes/ESI/Fragment.src/{M000101.html → M000112.html} +0 -0
- data/doc/rdoc/classes/ESI/Fragment.src/{M000102.html → M000113.html} +0 -0
- data/doc/rdoc/classes/ESI/MemcachedCache.html +46 -46
- data/doc/rdoc/classes/ESI/MemcachedCache.src/M000037.html +24 -0
- data/doc/rdoc/classes/ESI/MemcachedCache.src/M000038.html +22 -0
- data/doc/rdoc/classes/ESI/MemcachedCache.src/M000039.html +19 -0
- data/doc/rdoc/classes/ESI/MemcachedCache.src/M000040.html +10 -11
- data/doc/rdoc/classes/ESI/MemcachedCache.src/M000041.html +5 -9
- data/doc/rdoc/classes/ESI/MemcachedCache.src/M000042.html +6 -6
- data/doc/rdoc/classes/ESI/MemcachedCache.src/M000043.html +5 -10
- data/doc/rdoc/classes/ESI/MemcachedCache.src/M000044.html +5 -5
- data/doc/rdoc/classes/ESI/MemcachedCache.src/M000045.html +4 -6
- data/doc/rdoc/classes/ESI/OutputAdapter.html +204 -0
- data/doc/rdoc/classes/ESI/OutputAdapter.src/M000094.html +37 -0
- data/doc/rdoc/classes/ESI/OutputAdapter.src/M000095.html +18 -0
- data/doc/rdoc/classes/ESI/OutputAdapter.src/M000096.html +18 -0
- data/doc/rdoc/classes/ESI/OutputAdapter.src/M000097.html +18 -0
- data/doc/rdoc/classes/ESI/Parser.html +15 -15
- data/doc/rdoc/classes/ESI/Parser.src/{M000049.html → M000065.html} +0 -0
- data/doc/rdoc/classes/ESI/Parser.src/{M000050.html → M000066.html} +0 -0
- data/doc/rdoc/classes/ESI/Parser.src/{M000051.html → M000067.html} +0 -0
- data/doc/rdoc/classes/ESI/Processor.html +15 -15
- data/doc/rdoc/classes/ESI/Processor.src/{M000037.html → M000046.html} +0 -0
- data/doc/rdoc/classes/ESI/Processor.src/{M000038.html → M000047.html} +1 -1
- data/doc/rdoc/classes/ESI/Processor.src/{M000039.html → M000048.html} +0 -0
- data/doc/rdoc/classes/ESI/Proxy.html +48 -48
- data/doc/rdoc/classes/ESI/Proxy.src/M000071.html +7 -40
- data/doc/rdoc/classes/ESI/Proxy.src/M000072.html +50 -12
- data/doc/rdoc/classes/ESI/Proxy.src/M000073.html +49 -6
- data/doc/rdoc/classes/ESI/Proxy.src/M000074.html +11 -14
- data/doc/rdoc/classes/ESI/Proxy.src/M000075.html +6 -5
- data/doc/rdoc/classes/ESI/Proxy.src/M000076.html +9 -15
- data/doc/rdoc/classes/ESI/Proxy.src/M000077.html +5 -16
- data/doc/rdoc/classes/ESI/Proxy.src/M000078.html +28 -0
- data/doc/rdoc/classes/ESI/Proxy.src/M000079.html +29 -0
- data/doc/rdoc/classes/ESI/RackAdapter.html +214 -0
- data/doc/rdoc/classes/ESI/RackAdapter.src/M000068.html +18 -0
- data/doc/rdoc/classes/ESI/RackAdapter.src/M000069.html +34 -0
- data/doc/rdoc/classes/ESI/{MemcachedCache.src/M000048.html → RackAdapter.src/M000070.html} +4 -4
- data/doc/rdoc/classes/ESI/RackConfig.html +173 -0
- data/doc/rdoc/classes/ESI/RackConfig.src/M000089.html +28 -0
- data/doc/rdoc/classes/ESI/RackConfig.src/M000090.html +18 -0
- data/doc/rdoc/classes/ESI/RackConfig.src/M000091.html +20 -0
- data/doc/rdoc/classes/ESI/Request.html +158 -0
- data/doc/rdoc/classes/ESI/{MemcachedCache.src/M000046.html → Request.src/M000098.html} +5 -5
- data/doc/rdoc/classes/ESI/Request.src/M000099.html +18 -0
- data/doc/rdoc/classes/ESI/Response.html +36 -36
- data/doc/rdoc/classes/ESI/Response.src/M000080.html +10 -8
- data/doc/rdoc/classes/ESI/Response.src/M000081.html +5 -7
- data/doc/rdoc/classes/ESI/Response.src/M000082.html +8 -12
- data/doc/rdoc/classes/ESI/Response.src/M000083.html +7 -5
- data/doc/rdoc/classes/ESI/Response.src/M000084.html +12 -20
- data/doc/rdoc/classes/ESI/Response.src/{M000079.html → M000085.html} +5 -5
- data/doc/rdoc/classes/ESI/Response.src/M000086.html +33 -0
- data/doc/rdoc/classes/ESI/Router.html +10 -10
- data/doc/rdoc/classes/ESI/Router.src/{M000098.html → M000109.html} +0 -0
- data/doc/rdoc/classes/ESI/Router.src/{M000099.html → M000110.html} +0 -0
- data/doc/rdoc/classes/ESI/RubyCache.html +45 -45
- data/doc/rdoc/classes/ESI/RubyCache.src/{M000089.html → M000100.html} +6 -6
- data/doc/rdoc/classes/ESI/RubyCache.src/{M000090.html → M000101.html} +6 -6
- data/doc/rdoc/classes/ESI/RubyCache.src/{M000091.html → M000102.html} +6 -6
- data/doc/rdoc/classes/ESI/RubyCache.src/{M000092.html → M000103.html} +8 -8
- data/doc/rdoc/classes/ESI/RubyCache.src/{M000093.html → M000104.html} +4 -4
- data/doc/rdoc/classes/ESI/RubyCache.src/{M000094.html → M000105.html} +8 -8
- data/doc/rdoc/classes/ESI/RubyCache.src/{M000095.html → M000106.html} +4 -4
- data/doc/rdoc/classes/ESI/RubyCache.src/{M000096.html → M000107.html} +4 -4
- data/doc/rdoc/classes/ESI/RubyCache.src/{M000097.html → M000108.html} +4 -4
- data/doc/rdoc/classes/ESI/Tag.html +8 -8
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/COPYING.html +1 -1
- data/doc/rdoc/files/LICENSE.html +1 -1
- data/doc/rdoc/files/README.html +12 -10
- data/doc/rdoc/files/ext/esi/common_rl.html +1 -1
- data/doc/rdoc/files/ext/esi/esi_parser_c.html +1 -1
- data/doc/rdoc/files/ext/esi/parser_c.html +1 -1
- data/doc/rdoc/files/ext/esi/parser_h.html +1 -1
- data/doc/rdoc/files/ext/esi/parser_rl.html +122 -82
- data/doc/rdoc/files/ext/esi/test/test_c.html +1 -1
- data/doc/rdoc/files/lib/esi/cache_rb.html +2 -1
- data/doc/rdoc/files/lib/esi/config_rb.html +2 -1
- data/doc/rdoc/files/lib/esi/dispatcher_rb.html +3 -1
- data/doc/rdoc/files/lib/esi/invalidator_rb.html +1 -1
- data/doc/rdoc/files/lib/esi/logger_rb.html +1 -1
- data/doc/rdoc/files/lib/esi/parser_rb.html +1 -1
- data/doc/rdoc/files/lib/esi/processor_rb.html +1 -1
- data/doc/rdoc/files/lib/esi/proxy_rb.html +2 -2
- data/doc/rdoc/files/{ext/esi/test/parser_c.html → lib/esi/rack_adapter_rb.html} +21 -5
- data/doc/rdoc/files/lib/esi/response_rb.html +1 -1
- data/doc/rdoc/files/lib/esi/router_rb.html +1 -1
- data/doc/rdoc/files/lib/esi/tag/attempt_rb.html +1 -1
- data/doc/rdoc/files/lib/esi/tag/base_rb.html +1 -1
- data/doc/rdoc/files/lib/esi/tag/container_rb.html +1 -1
- data/doc/rdoc/files/lib/esi/tag/except_rb.html +1 -1
- data/doc/rdoc/files/lib/esi/tag/include_rb.html +1 -1
- data/doc/rdoc/files/lib/esi/tag/invalidate_rb.html +1 -1
- data/doc/rdoc/files/lib/esi/tag/try_rb.html +1 -1
- data/doc/rdoc/files/lib/esi/version_rb.html +1 -1
- data/doc/rdoc/files/lib/multi_dirhandler_rb.html +1 -1
- data/doc/rdoc/fr_class_index.html +4 -0
- data/doc/rdoc/fr_file_index.html +1 -5
- data/doc/rdoc/fr_method_index.html +87 -76
- data/ext/esi/esi_parser.c +2 -2
- data/ext/esi/parser.c +133 -107
- data/ext/esi/parser.h +9 -4
- data/ext/esi/parser.rl +99 -73
- data/ext/esi/test/test.c +11 -6
- data/lib/esi/cache.rb +7 -3
- data/lib/esi/config.rb +4 -8
- data/lib/esi/dispatcher.rb +14 -5
- data/lib/esi/processor.rb +1 -1
- data/lib/esi/proxy.rb +58 -48
- data/lib/esi/rack_adapter.rb +97 -0
- data/lib/esi/response.rb +30 -1
- data/lib/esi/version.rb +1 -1
- data/test/bench-plot.rb +31 -0
- data/test/benchmarks/csv-perf-serial0.4 +101 -0
- data/test/benchmarks/csv-perf-trunk +101 -0
- data/test/benchmarks/perf-serial0.4-n1000-c1.csv +101 -0
- data/test/benchmarks/perf-serial0.4-n1000-c2.csv +101 -0
- data/test/benchmarks/perf-serial0.4-n1000-c3.csv +101 -0
- data/test/benchmarks/perf-serial0.4-n1000-c4.csv +101 -0
- data/test/benchmarks/perf-serial0.4-n1000-c5.csv +101 -0
- data/test/benchmarks/perf-serial0.4-n1000-c6.csv +101 -0
- data/test/benchmarks/perf-serial0.4-n1000-c7.csv +101 -0
- data/test/benchmarks/perf-trunk-n1000-c1.csv +101 -0
- data/test/benchmarks/perf-trunk-n1000-c2.csv +101 -0
- data/test/benchmarks/perf-trunk-n1000-c3.csv +101 -0
- data/test/benchmarks/perf-trunk-n1000-c4.csv +101 -0
- data/test/benchmarks/perf-trunk-n1000-c5.csv +101 -0
- data/test/benchmarks/perf-trunk-n1000-c6.csv +101 -0
- data/test/benchmarks/perf-trunk-n1000-c7.csv +101 -0
- data/test/load_test.rb +5 -2
- data/test/load_test_ab.rb +9 -4
- metadata +261 -227
- data/doc/rdoc/classes/ESI/Config.src/M000057.html +0 -18
- data/doc/rdoc/classes/ESI/Config.src/M000058.html +0 -20
- data/doc/rdoc/classes/ESI/Config.src/M000060.html +0 -24
- data/doc/rdoc/classes/ESI/Dispatcher.src/M000088.html +0 -18
- data/doc/rdoc/classes/ESI/MemcachedCache.src/M000047.html +0 -18
- data/doc/rdoc/classes/ESI/Proxy.src/M000069.html +0 -20
- data/doc/rdoc/classes/ESI/Proxy.src/M000070.html +0 -55
- data/doc/rdoc/classes/ESI/Response.src/M000078.html +0 -23
- data/doc/rdoc/files/ext/esi/test/common_rl.html +0 -160
- data/doc/rdoc/files/ext/esi/test/parser_h.html +0 -101
- data/doc/rdoc/files/ext/esi/test/parser_rl.html +0 -827
- data/doc/rdoc/files/ext/esi/test/sp_c.html +0 -101
- data/ext/esi/test/common.rl +0 -46
- data/ext/esi/test/parser.c +0 -1875
- data/ext/esi/test/parser.h +0 -120
- data/ext/esi/test/parser.rl +0 -585
- data/ext/esi/test/sp.c +0 -125
@@ -5,31 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>router (ESI::Config)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre>
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
57: <span class="ruby-comment cmt"># if both are set it surrogate takes presendence </span>
|
18
|
-
58: <span class="ruby-identifier">use_esi</span> = <span class="ruby-keyword kw">false</span>
|
19
|
-
59: <span class="ruby-identifier">allowed_content_types</span> = <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">:allowed_content_types</span>]
|
20
|
-
60:
|
21
|
-
61: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">allowed_content_types</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">headers</span>[<span class="ruby-value str">"content-type"</span>] <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">allowed_content_types</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:detect</span>)
|
22
|
-
62: <span class="ruby-identifier">use_esi</span> = <span class="ruby-identifier">allowed_content_types</span>.<span class="ruby-identifier">detect</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">type</span><span class="ruby-operator">|</span>
|
23
|
-
63: <span class="ruby-identifier">headers</span>[<span class="ruby-value str">"content-type"</span>].<span class="ruby-identifier">match</span>( <span class="ruby-identifier">type</span> )
|
24
|
-
64: <span class="ruby-keyword kw">end</span>
|
25
|
-
65: <span class="ruby-identifier">use_esi</span> = <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">use_esi</span>
|
26
|
-
66: <span class="ruby-keyword kw">end</span>
|
27
|
-
67:
|
28
|
-
68: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">:enable_for_surrogate_only</span>]
|
29
|
-
69: <span class="ruby-identifier">use_esi</span> = <span class="ruby-identifier">headers</span>[<span class="ruby-value str">"surrogate-control"</span>] <span class="ruby-keyword kw">and</span> <span class="ruby-regexp re">/ESI/</span>.<span class="ruby-identifier">match</span>(<span class="ruby-identifier">headers</span>[<span class="ruby-value str">"surrogate-control"</span>])
|
30
|
-
70: <span class="ruby-keyword kw">end</span>
|
31
|
-
71:
|
32
|
-
72: <span class="ruby-identifier">use_esi</span>
|
33
|
-
73: <span class="ruby-keyword kw">end</span></pre>
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/esi/config.rb, line 140</span>
|
14
|
+
140: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">router</span>
|
15
|
+
141: <span class="ruby-constant">ESI</span><span class="ruby-operator">::</span><span class="ruby-constant">Router</span>.<span class="ruby-identifier">new</span>( <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">:routing</span>] )
|
16
|
+
142: <span class="ruby-keyword kw">end</span></pre>
|
34
17
|
</body>
|
35
18
|
</html>
|
@@ -5,34 +5,16 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>routes (ESI::Config)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/esi/config.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
109: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">cache_options</span>.<span class="ruby-identifier">memcached?</span>
|
20
|
-
110: <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">:cache</span>] = <span class="ruby-value str">'memcached'</span>
|
21
|
-
111: <span class="ruby-keyword kw">end</span>
|
22
|
-
112: <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">:cache_options</span>] = <span class="ruby-identifier">cache_options</span>.<span class="ruby-identifier">options</span>
|
23
|
-
113: <span class="ruby-keyword kw">else</span>
|
24
|
-
114: <span class="ruby-identifier">cache_type</span> = <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">:cache</span>]
|
25
|
-
115: <span class="ruby-identifier">options</span> = <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">:cache_options</span>]
|
26
|
-
116: <span class="ruby-comment cmt"># always return the same cache object, per process</span>
|
27
|
-
117: <span class="ruby-identifier">$cache</span> <span class="ruby-operator">||=</span> <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">cache_type</span>
|
28
|
-
118: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'ruby'</span>
|
29
|
-
119: <span class="ruby-constant">ESI</span><span class="ruby-operator">::</span><span class="ruby-constant">RubyCache</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>)
|
30
|
-
120: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'memcached'</span>
|
31
|
-
121: <span class="ruby-constant">ESI</span><span class="ruby-operator">::</span><span class="ruby-constant">MemcachedCache</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>)
|
32
|
-
122: <span class="ruby-keyword kw">else</span>
|
33
|
-
123: <span class="ruby-identifier">raise</span> <span class="ruby-value str">"Unsupported cache"</span>
|
34
|
-
124: <span class="ruby-keyword kw">end</span>
|
35
|
-
125: <span class="ruby-keyword kw">end</span>
|
36
|
-
126: <span class="ruby-keyword kw">end</span></pre>
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/esi/config.rb, line 169</span>
|
14
|
+
169: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">routes</span>
|
15
|
+
170: <span class="ruby-identifier">config_router</span> = <span class="ruby-constant">ConfigRouter</span>.<span class="ruby-identifier">new</span>
|
16
|
+
171: <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">config_router</span>
|
17
|
+
172: <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">:routing</span>] = <span class="ruby-identifier">config_router</span>.<span class="ruby-identifier">routes</span>
|
18
|
+
173: <span class="ruby-keyword kw">end</span></pre>
|
37
19
|
</body>
|
38
20
|
</html>
|
@@ -5,19 +5,20 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>define (ESI::Config)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/esi/config.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/esi/config.rb, line 175</span>
|
14
|
+
175: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">define</span>( <span class="ruby-identifier">listeners</span> )
|
15
|
+
176: <span class="ruby-identifier">listeners</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span><span class="ruby-operator">|</span><span class="ruby-identifier">host</span>,<span class="ruby-identifier">server</span><span class="ruby-operator">|</span>
|
16
|
+
177: <span class="ruby-identifier">esi_handlers</span> = <span class="ruby-identifier">server</span>.<span class="ruby-identifier">classifier</span>.<span class="ruby-identifier">handler_map</span>.<span class="ruby-identifier">select</span> <span class="ruby-keyword kw">do</span><span class="ruby-operator">|</span><span class="ruby-identifier">uri</span>,<span class="ruby-identifier">handler</span><span class="ruby-operator">|</span>
|
17
|
+
178: <span class="ruby-identifier">handler</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">class</span> <span class="ruby-operator">==</span> <span class="ruby-constant">ESI</span><span class="ruby-operator">::</span><span class="ruby-constant">Dispatcher</span>
|
18
|
+
179: <span class="ruby-keyword kw">end</span>
|
19
|
+
180: <span class="ruby-identifier">config</span> = <span class="ruby-identifier">esi_handlers</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">last</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">config</span>
|
20
|
+
181: <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">config</span>
|
21
|
+
182: <span class="ruby-keyword kw">end</span>
|
22
|
+
183: <span class="ruby-keyword kw">end</span></pre>
|
22
23
|
</body>
|
23
24
|
</html>
|
@@ -86,11 +86,11 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
89
|
+
<a href="#M000063">locked</a>
|
90
|
+
<a href="#M000061">memcached</a>
|
91
|
+
<a href="#M000062">memcached?</a>
|
92
|
+
<a href="#M000060">new</a>
|
93
|
+
<a href="#M000064">ttl=</a>
|
94
94
|
</div>
|
95
95
|
</div>
|
96
96
|
|
@@ -125,12 +125,12 @@
|
|
125
125
|
<div id="methods">
|
126
126
|
<h3 class="section-bar">Public Class methods</h3>
|
127
127
|
|
128
|
-
<div id="method-
|
129
|
-
<a name="
|
128
|
+
<div id="method-M000060" class="method-detail">
|
129
|
+
<a name="M000060"></a>
|
130
130
|
|
131
131
|
<div class="method-heading">
|
132
|
-
<a href="CacheConfig.src/
|
133
|
-
onclick="popupCode('CacheConfig.src/
|
132
|
+
<a href="CacheConfig.src/M000060.html" target="Code" class="method-signature"
|
133
|
+
onclick="popupCode('CacheConfig.src/M000060.html');return false;">
|
134
134
|
<span class="method-name">new</span><span class="method-args">()</span>
|
135
135
|
</a>
|
136
136
|
</div>
|
@@ -141,12 +141,12 @@
|
|
141
141
|
|
142
142
|
<h3 class="section-bar">Public Instance methods</h3>
|
143
143
|
|
144
|
-
<div id="method-
|
145
|
-
<a name="
|
144
|
+
<div id="method-M000063" class="method-detail">
|
145
|
+
<a name="M000063"></a>
|
146
146
|
|
147
147
|
<div class="method-heading">
|
148
|
-
<a href="CacheConfig.src/
|
149
|
-
onclick="popupCode('CacheConfig.src/
|
148
|
+
<a href="CacheConfig.src/M000063.html" target="Code" class="method-signature"
|
149
|
+
onclick="popupCode('CacheConfig.src/M000063.html');return false;">
|
150
150
|
<span class="method-name">locked</span><span class="method-args">()</span>
|
151
151
|
</a>
|
152
152
|
</div>
|
@@ -155,12 +155,12 @@
|
|
155
155
|
</div>
|
156
156
|
</div>
|
157
157
|
|
158
|
-
<div id="method-
|
159
|
-
<a name="
|
158
|
+
<div id="method-M000061" class="method-detail">
|
159
|
+
<a name="M000061"></a>
|
160
160
|
|
161
161
|
<div class="method-heading">
|
162
|
-
<a href="CacheConfig.src/
|
163
|
-
onclick="popupCode('CacheConfig.src/
|
162
|
+
<a href="CacheConfig.src/M000061.html" target="Code" class="method-signature"
|
163
|
+
onclick="popupCode('CacheConfig.src/M000061.html');return false;">
|
164
164
|
<span class="method-name">memcached</span><span class="method-args">() {|@options| ...}</span>
|
165
165
|
</a>
|
166
166
|
</div>
|
@@ -169,12 +169,12 @@
|
|
169
169
|
</div>
|
170
170
|
</div>
|
171
171
|
|
172
|
-
<div id="method-
|
173
|
-
<a name="
|
172
|
+
<div id="method-M000062" class="method-detail">
|
173
|
+
<a name="M000062"></a>
|
174
174
|
|
175
175
|
<div class="method-heading">
|
176
|
-
<a href="CacheConfig.src/
|
177
|
-
onclick="popupCode('CacheConfig.src/
|
176
|
+
<a href="CacheConfig.src/M000062.html" target="Code" class="method-signature"
|
177
|
+
onclick="popupCode('CacheConfig.src/M000062.html');return false;">
|
178
178
|
<span class="method-name">memcached?</span><span class="method-args">()</span>
|
179
179
|
</a>
|
180
180
|
</div>
|
@@ -183,12 +183,12 @@
|
|
183
183
|
</div>
|
184
184
|
</div>
|
185
185
|
|
186
|
-
<div id="method-
|
187
|
-
<a name="
|
186
|
+
<div id="method-M000064" class="method-detail">
|
187
|
+
<a name="M000064"></a>
|
188
188
|
|
189
189
|
<div class="method-heading">
|
190
|
-
<a href="CacheConfig.src/
|
191
|
-
onclick="popupCode('CacheConfig.src/
|
190
|
+
<a href="CacheConfig.src/M000064.html" target="Code" class="method-signature"
|
191
|
+
onclick="popupCode('CacheConfig.src/M000064.html');return false;">
|
192
192
|
<span class="method-name">ttl=</span><span class="method-args">( ttl )</span>
|
193
193
|
</a>
|
194
194
|
</div>
|
@@ -5,14 +5,15 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>new (ESI::Config::CacheConfig)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/esi/config.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/esi/config.rb, line 78</span>
|
14
|
+
78: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
15
|
+
79: <span class="ruby-ivar">@memcached</span> = <span class="ruby-keyword kw">false</span>
|
16
|
+
80: <span class="ruby-ivar">@options</span> = <span class="ruby-constant">OpenStruct</span>.<span class="ruby-identifier">new</span>({})
|
17
|
+
81: <span class="ruby-keyword kw">end</span></pre>
|
17
18
|
</body>
|
18
19
|
</html>
|
@@ -10,10 +10,10 @@
|
|
10
10
|
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/esi/config.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/esi/config.rb, line 83</span>
|
14
|
+
83: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">memcached</span>
|
15
|
+
84: <span class="ruby-ivar">@memcached</span> = <span class="ruby-keyword kw">true</span>
|
16
|
+
85: <span class="ruby-keyword kw">yield</span> <span class="ruby-ivar">@options</span>
|
17
|
+
86: <span class="ruby-keyword kw">end</span></pre>
|
18
18
|
</body>
|
19
19
|
</html>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/esi/config.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/esi/config.rb, line 88</span>
|
14
|
+
88: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">memcached?</span>
|
15
|
+
89: <span class="ruby-ivar">@memcached</span>
|
16
|
+
90: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/esi/config.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/esi/config.rb, line 92</span>
|
14
|
+
92: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">locked</span>
|
15
|
+
93: <span class="ruby-operator">!</span><span class="ruby-ivar">@memcached</span>
|
16
|
+
94: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -5,15 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>ttl= (ESI::Config::CacheConfig)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/esi/config.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
80: <span class="ruby-keyword kw">end</span></pre>
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/esi/config.rb, line 96</span>
|
14
|
+
96: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ttl=</span>( <span class="ruby-identifier">ttl</span> )
|
15
|
+
97: <span class="ruby-ivar">@options</span>.<span class="ruby-identifier">ttl</span> = <span class="ruby-identifier">ttl</span>
|
16
|
+
98: <span class="ruby-keyword kw">end</span></pre>
|
18
17
|
</body>
|
19
18
|
</html>
|
@@ -86,9 +86,9 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
89
|
+
<a href="#M000059">default</a>
|
90
|
+
<a href="#M000058">match</a>
|
91
|
+
<a href="#M000057">new</a>
|
92
92
|
</div>
|
93
93
|
</div>
|
94
94
|
|
@@ -128,12 +128,12 @@
|
|
128
128
|
<div id="methods">
|
129
129
|
<h3 class="section-bar">Public Class methods</h3>
|
130
130
|
|
131
|
-
<div id="method-
|
132
|
-
<a name="
|
131
|
+
<div id="method-M000057" class="method-detail">
|
132
|
+
<a name="M000057"></a>
|
133
133
|
|
134
134
|
<div class="method-heading">
|
135
|
-
<a href="ConfigRouter.src/
|
136
|
-
onclick="popupCode('ConfigRouter.src/
|
135
|
+
<a href="ConfigRouter.src/M000057.html" target="Code" class="method-signature"
|
136
|
+
onclick="popupCode('ConfigRouter.src/M000057.html');return false;">
|
137
137
|
<span class="method-name">new</span><span class="method-args">()</span>
|
138
138
|
</a>
|
139
139
|
</div>
|
@@ -144,12 +144,12 @@
|
|
144
144
|
|
145
145
|
<h3 class="section-bar">Public Instance methods</h3>
|
146
146
|
|
147
|
-
<div id="method-
|
148
|
-
<a name="
|
147
|
+
<div id="method-M000059" class="method-detail">
|
148
|
+
<a name="M000059"></a>
|
149
149
|
|
150
150
|
<div class="method-heading">
|
151
|
-
<a href="ConfigRouter.src/
|
152
|
-
onclick="popupCode('ConfigRouter.src/
|
151
|
+
<a href="ConfigRouter.src/M000059.html" target="Code" class="method-signature"
|
152
|
+
onclick="popupCode('ConfigRouter.src/M000059.html');return false;">
|
153
153
|
<span class="method-name">default</span><span class="method-args">() {|self| ...}</span>
|
154
154
|
</a>
|
155
155
|
</div>
|
@@ -158,12 +158,12 @@
|
|
158
158
|
</div>
|
159
159
|
</div>
|
160
160
|
|
161
|
-
<div id="method-
|
162
|
-
<a name="
|
161
|
+
<div id="method-M000058" class="method-detail">
|
162
|
+
<a name="M000058"></a>
|
163
163
|
|
164
164
|
<div class="method-heading">
|
165
|
-
<a href="ConfigRouter.src/
|
166
|
-
onclick="popupCode('ConfigRouter.src/
|
165
|
+
<a href="ConfigRouter.src/M000058.html" target="Code" class="method-signature"
|
166
|
+
onclick="popupCode('ConfigRouter.src/M000058.html');return false;">
|
167
167
|
<span class="method-name">match</span><span class="method-args">( expr ) {|self| ...}</span>
|
168
168
|
</a>
|
169
169
|
</div>
|
@@ -10,10 +10,10 @@
|
|
10
10
|
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/esi/config.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/esi/config.rb, line 148</span>
|
14
|
+
148: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
15
|
+
149: <span class="ruby-ivar">@routes</span> = []
|
16
|
+
150: <span class="ruby-ivar">@servers</span> = []
|
17
|
+
151: <span class="ruby-keyword kw">end</span></pre>
|
18
18
|
</body>
|
19
19
|
</html>
|
@@ -10,12 +10,12 @@
|
|
10
10
|
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/esi/config.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/esi/config.rb, line 153</span>
|
14
|
+
153: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">match</span>( <span class="ruby-identifier">expr</span> )
|
15
|
+
154: <span class="ruby-keyword kw">yield</span> <span class="ruby-keyword kw">self</span>
|
16
|
+
155: <span class="ruby-ivar">@routes</span> <span class="ruby-operator"><<</span> { <span class="ruby-identifier">:host</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@servers</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">':'</span>).<span class="ruby-identifier">first</span>,
|
17
|
+
156: <span class="ruby-identifier">:port</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@servers</span>.<span class="ruby-identifier">last</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">':'</span>).<span class="ruby-identifier">last</span>,
|
18
|
+
157: <span class="ruby-identifier">:match_url</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">expr</span> }
|
19
|
+
158: <span class="ruby-keyword kw">end</span></pre>
|
20
20
|
</body>
|
21
21
|
</html>
|
@@ -10,12 +10,12 @@
|
|
10
10
|
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/esi/config.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/esi/config.rb, line 160</span>
|
14
|
+
160: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">default</span>
|
15
|
+
161: <span class="ruby-keyword kw">yield</span> <span class="ruby-keyword kw">self</span>
|
16
|
+
162: <span class="ruby-ivar">@routes</span> <span class="ruby-operator"><<</span> { <span class="ruby-identifier">:host</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@servers</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">':'</span>).<span class="ruby-identifier">first</span>,
|
17
|
+
163: <span class="ruby-identifier">:port</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@servers</span>.<span class="ruby-identifier">last</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">':'</span>).<span class="ruby-identifier">last</span>,
|
18
|
+
164: <span class="ruby-identifier">:match_url</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'default'</span> }
|
19
|
+
165: <span class="ruby-keyword kw">end</span></pre>
|
20
20
|
</body>
|
21
21
|
</html>
|
@@ -86,8 +86,8 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
89
|
+
<a href="#M000092">new</a>
|
90
|
+
<a href="#M000093">process</a>
|
91
91
|
</div>
|
92
92
|
</div>
|
93
93
|
|
@@ -95,6 +95,13 @@
|
|
95
95
|
|
96
96
|
|
97
97
|
<!-- if includes -->
|
98
|
+
<div id="includes">
|
99
|
+
<h3 class="section-bar">Included Modules</h3>
|
100
|
+
|
101
|
+
<div id="includes-list">
|
102
|
+
<span class="include-name"><a href="Log.html">ESI::Log</a></span>
|
103
|
+
</div>
|
104
|
+
</div>
|
98
105
|
|
99
106
|
<div id="section">
|
100
107
|
|
@@ -112,11 +119,6 @@
|
|
112
119
|
<td class="context-item-value"> [R] </td>
|
113
120
|
<td class="context-item-desc"></td>
|
114
121
|
</tr>
|
115
|
-
<tr class="top-aligned-row context-row">
|
116
|
-
<td class="context-item-name">router</td>
|
117
|
-
<td class="context-item-value"> [R] </td>
|
118
|
-
<td class="context-item-desc"></td>
|
119
|
-
</tr>
|
120
122
|
</table>
|
121
123
|
</div>
|
122
124
|
</div>
|
@@ -127,12 +129,12 @@
|
|
127
129
|
<div id="methods">
|
128
130
|
<h3 class="section-bar">Public Class methods</h3>
|
129
131
|
|
130
|
-
<div id="method-
|
131
|
-
<a name="
|
132
|
+
<div id="method-M000092" class="method-detail">
|
133
|
+
<a name="M000092"></a>
|
132
134
|
|
133
135
|
<div class="method-heading">
|
134
|
-
<a href="Dispatcher.src/
|
135
|
-
onclick="popupCode('Dispatcher.src/
|
136
|
+
<a href="Dispatcher.src/M000092.html" target="Code" class="method-signature"
|
137
|
+
onclick="popupCode('Dispatcher.src/M000092.html');return false;">
|
136
138
|
<span class="method-name">new</span><span class="method-args">( options )</span>
|
137
139
|
</a>
|
138
140
|
</div>
|
@@ -143,12 +145,12 @@
|
|
143
145
|
|
144
146
|
<h3 class="section-bar">Public Instance methods</h3>
|
145
147
|
|
146
|
-
<div id="method-
|
147
|
-
<a name="
|
148
|
+
<div id="method-M000093" class="method-detail">
|
149
|
+
<a name="M000093"></a>
|
148
150
|
|
149
151
|
<div class="method-heading">
|
150
|
-
<a href="Dispatcher.src/
|
151
|
-
onclick="popupCode('Dispatcher.src/
|
152
|
+
<a href="Dispatcher.src/M000093.html" target="Code" class="method-signature"
|
153
|
+
onclick="popupCode('Dispatcher.src/M000093.html');return false;">
|
152
154
|
<span class="method-name">process</span><span class="method-args">(request, response)</span>
|
153
155
|
</a>
|
154
156
|
</div>
|