mongrel_esi 0.5.2 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ext/esi/esi_parser.c +1 -0
- data/ext/esi/extconf.rb +2 -0
- data/ext/esi/parser.c +2 -2
- data/ext/esi/parser.h +2 -0
- data/ext/esi/parser.rl +2 -2
- data/ext/esi/test/common.rl +46 -0
- data/ext/esi/test/parser.c +1901 -0
- data/ext/esi/test/parser.h +127 -0
- data/ext/esi/test/parser.rl +611 -0
- data/ext/esi/test/test.c +2 -2
- data/lib/esi/cache.rb +1 -1
- data/lib/esi/version.rb +1 -1
- data/test/benchmarks/perf-trunk-n1000-c1.csv +100 -100
- data/test/benchmarks/perf-trunk-n1000-c2.csv +100 -100
- data/test/benchmarks/perf-trunk-n1000-c3.csv +100 -100
- data/test/benchmarks/perf-trunk-n1000-c4.csv +100 -100
- data/test/benchmarks/perf-trunk-n1000-c5.csv +100 -100
- data/test/integration/docs/large-no-cache.html +688 -0
- data/test/integration/handler_test.rb +7 -2
- data/test/load_test_ab.rb +1 -1
- metadata +7 -222
- data/doc/rdoc/classes/ESI/CParser.html +0 -122
- data/doc/rdoc/classes/ESI/Cache.html +0 -178
- data/doc/rdoc/classes/ESI/Cache.src/M000087.html +0 -17
- data/doc/rdoc/classes/ESI/Cache.src/M000088.html +0 -20
- data/doc/rdoc/classes/ESI/Config.html +0 -314
- data/doc/rdoc/classes/ESI/Config.src/M000049.html +0 -18
- data/doc/rdoc/classes/ESI/Config.src/M000050.html +0 -18
- data/doc/rdoc/classes/ESI/Config.src/M000051.html +0 -35
- data/doc/rdoc/classes/ESI/Config.src/M000052.html +0 -40
- data/doc/rdoc/classes/ESI/Config.src/M000053.html +0 -23
- data/doc/rdoc/classes/ESI/Config.src/M000054.html +0 -18
- data/doc/rdoc/classes/ESI/Config.src/M000055.html +0 -20
- data/doc/rdoc/classes/ESI/Config.src/M000056.html +0 -24
- data/doc/rdoc/classes/ESI/Config/CacheConfig.html +0 -212
- data/doc/rdoc/classes/ESI/Config/CacheConfig.src/M000060.html +0 -19
- data/doc/rdoc/classes/ESI/Config/CacheConfig.src/M000061.html +0 -19
- data/doc/rdoc/classes/ESI/Config/CacheConfig.src/M000062.html +0 -18
- data/doc/rdoc/classes/ESI/Config/CacheConfig.src/M000063.html +0 -18
- data/doc/rdoc/classes/ESI/Config/CacheConfig.src/M000064.html +0 -18
- data/doc/rdoc/classes/ESI/Config/ConfigRouter.html +0 -187
- data/doc/rdoc/classes/ESI/Config/ConfigRouter.src/M000057.html +0 -19
- data/doc/rdoc/classes/ESI/Config/ConfigRouter.src/M000058.html +0 -21
- data/doc/rdoc/classes/ESI/Config/ConfigRouter.src/M000059.html +0 -21
- data/doc/rdoc/classes/ESI/Dispatcher.html +0 -174
- data/doc/rdoc/classes/ESI/Dispatcher.src/M000092.html +0 -19
- data/doc/rdoc/classes/ESI/Dispatcher.src/M000093.html +0 -27
- data/doc/rdoc/classes/ESI/Fragment.html +0 -218
- data/doc/rdoc/classes/ESI/Fragment.src/M000111.html +0 -20
- data/doc/rdoc/classes/ESI/Fragment.src/M000112.html +0 -18
- data/doc/rdoc/classes/ESI/Fragment.src/M000113.html +0 -18
- data/doc/rdoc/classes/ESI/Invalidator.html +0 -131
- data/doc/rdoc/classes/ESI/Invalidator.src/M000004.html +0 -41
- data/doc/rdoc/classes/ESI/Log.html +0 -221
- data/doc/rdoc/classes/ESI/Log.src/M000030.html +0 -18
- data/doc/rdoc/classes/ESI/Log.src/M000031.html +0 -18
- data/doc/rdoc/classes/ESI/Log.src/M000032.html +0 -18
- data/doc/rdoc/classes/ESI/Log.src/M000033.html +0 -18
- data/doc/rdoc/classes/ESI/Log.src/M000034.html +0 -18
- data/doc/rdoc/classes/ESI/Log.src/M000035.html +0 -18
- data/doc/rdoc/classes/ESI/Log.src/M000036.html +0 -18
- data/doc/rdoc/classes/ESI/MemcachedCache.html +0 -314
- data/doc/rdoc/classes/ESI/MemcachedCache.src/M000037.html +0 -24
- data/doc/rdoc/classes/ESI/MemcachedCache.src/M000038.html +0 -22
- data/doc/rdoc/classes/ESI/MemcachedCache.src/M000039.html +0 -19
- data/doc/rdoc/classes/ESI/MemcachedCache.src/M000040.html +0 -23
- data/doc/rdoc/classes/ESI/MemcachedCache.src/M000041.html +0 -18
- data/doc/rdoc/classes/ESI/MemcachedCache.src/M000042.html +0 -19
- data/doc/rdoc/classes/ESI/MemcachedCache.src/M000043.html +0 -18
- data/doc/rdoc/classes/ESI/MemcachedCache.src/M000044.html +0 -18
- data/doc/rdoc/classes/ESI/MemcachedCache.src/M000045.html +0 -17
- data/doc/rdoc/classes/ESI/OutputAdapter.html +0 -204
- data/doc/rdoc/classes/ESI/OutputAdapter.src/M000094.html +0 -37
- data/doc/rdoc/classes/ESI/OutputAdapter.src/M000095.html +0 -18
- data/doc/rdoc/classes/ESI/OutputAdapter.src/M000096.html +0 -18
- data/doc/rdoc/classes/ESI/OutputAdapter.src/M000097.html +0 -18
- data/doc/rdoc/classes/ESI/Parser.html +0 -184
- data/doc/rdoc/classes/ESI/Parser.src/M000065.html +0 -51
- data/doc/rdoc/classes/ESI/Parser.src/M000066.html +0 -39
- data/doc/rdoc/classes/ESI/Parser.src/M000067.html +0 -19
- data/doc/rdoc/classes/ESI/Processor.html +0 -194
- data/doc/rdoc/classes/ESI/Processor.src/M000046.html +0 -26
- data/doc/rdoc/classes/ESI/Processor.src/M000047.html +0 -44
- data/doc/rdoc/classes/ESI/Processor.src/M000048.html +0 -26
- data/doc/rdoc/classes/ESI/Proxy.html +0 -304
- data/doc/rdoc/classes/ESI/Proxy.src/M000071.html +0 -20
- data/doc/rdoc/classes/ESI/Proxy.src/M000072.html +0 -63
- data/doc/rdoc/classes/ESI/Proxy.src/M000073.html +0 -62
- data/doc/rdoc/classes/ESI/Proxy.src/M000074.html +0 -24
- data/doc/rdoc/classes/ESI/Proxy.src/M000075.html +0 -19
- data/doc/rdoc/classes/ESI/Proxy.src/M000076.html +0 -22
- data/doc/rdoc/classes/ESI/Proxy.src/M000077.html +0 -18
- data/doc/rdoc/classes/ESI/Proxy.src/M000078.html +0 -28
- data/doc/rdoc/classes/ESI/Proxy.src/M000079.html +0 -29
- data/doc/rdoc/classes/ESI/RackAdapter.html +0 -214
- data/doc/rdoc/classes/ESI/RackAdapter.src/M000068.html +0 -18
- data/doc/rdoc/classes/ESI/RackAdapter.src/M000069.html +0 -34
- data/doc/rdoc/classes/ESI/RackAdapter.src/M000070.html +0 -17
- data/doc/rdoc/classes/ESI/RackConfig.html +0 -173
- data/doc/rdoc/classes/ESI/RackConfig.src/M000089.html +0 -28
- data/doc/rdoc/classes/ESI/RackConfig.src/M000090.html +0 -18
- data/doc/rdoc/classes/ESI/RackConfig.src/M000091.html +0 -20
- data/doc/rdoc/classes/ESI/Request.html +0 -158
- data/doc/rdoc/classes/ESI/Request.src/M000098.html +0 -18
- data/doc/rdoc/classes/ESI/Request.src/M000099.html +0 -18
- data/doc/rdoc/classes/ESI/Response.html +0 -250
- data/doc/rdoc/classes/ESI/Response.src/M000080.html +0 -23
- data/doc/rdoc/classes/ESI/Response.src/M000081.html +0 -18
- data/doc/rdoc/classes/ESI/Response.src/M000082.html +0 -21
- data/doc/rdoc/classes/ESI/Response.src/M000083.html +0 -20
- data/doc/rdoc/classes/ESI/Response.src/M000084.html +0 -25
- data/doc/rdoc/classes/ESI/Response.src/M000085.html +0 -18
- data/doc/rdoc/classes/ESI/Response.src/M000086.html +0 -33
- data/doc/rdoc/classes/ESI/Router.html +0 -212
- data/doc/rdoc/classes/ESI/Router.src/M000109.html +0 -36
- data/doc/rdoc/classes/ESI/Router.src/M000110.html +0 -25
- data/doc/rdoc/classes/ESI/RubyCache.html +0 -278
- data/doc/rdoc/classes/ESI/RubyCache.src/M000100.html +0 -20
- data/doc/rdoc/classes/ESI/RubyCache.src/M000101.html +0 -20
- data/doc/rdoc/classes/ESI/RubyCache.src/M000102.html +0 -20
- data/doc/rdoc/classes/ESI/RubyCache.src/M000103.html +0 -22
- data/doc/rdoc/classes/ESI/RubyCache.src/M000104.html +0 -18
- data/doc/rdoc/classes/ESI/RubyCache.src/M000105.html +0 -22
- data/doc/rdoc/classes/ESI/RubyCache.src/M000106.html +0 -18
- data/doc/rdoc/classes/ESI/RubyCache.src/M000107.html +0 -18
- data/doc/rdoc/classes/ESI/RubyCache.src/M000108.html +0 -18
- data/doc/rdoc/classes/ESI/Tag.html +0 -141
- data/doc/rdoc/classes/ESI/Tag/Attempt.html +0 -113
- data/doc/rdoc/classes/ESI/Tag/Base.html +0 -237
- data/doc/rdoc/classes/ESI/Tag/Base.src/M000026.html +0 -23
- data/doc/rdoc/classes/ESI/Tag/Base.src/M000027.html +0 -22
- data/doc/rdoc/classes/ESI/Tag/Base.src/M000028.html +0 -22
- data/doc/rdoc/classes/ESI/Tag/Base.src/M000029.html +0 -17
- data/doc/rdoc/classes/ESI/Tag/Container.html +0 -206
- data/doc/rdoc/classes/ESI/Tag/Container.src/M000015.html +0 -20
- data/doc/rdoc/classes/ESI/Tag/Container.src/M000016.html +0 -22
- data/doc/rdoc/classes/ESI/Tag/Container.src/M000017.html +0 -25
- data/doc/rdoc/classes/ESI/Tag/Except.html +0 -184
- data/doc/rdoc/classes/ESI/Tag/Except.src/M000018.html +0 -21
- data/doc/rdoc/classes/ESI/Tag/Except.src/M000019.html +0 -20
- data/doc/rdoc/classes/ESI/Tag/Except.src/M000020.html +0 -18
- data/doc/rdoc/classes/ESI/Tag/Include.html +0 -257
- data/doc/rdoc/classes/ESI/Tag/Include.src/M000005.html +0 -20
- data/doc/rdoc/classes/ESI/Tag/Include.src/M000006.html +0 -18
- data/doc/rdoc/classes/ESI/Tag/Include.src/M000007.html +0 -34
- data/doc/rdoc/classes/ESI/Tag/Include.src/M000008.html +0 -22
- data/doc/rdoc/classes/ESI/Tag/Include.src/M000009.html +0 -27
- data/doc/rdoc/classes/ESI/Tag/Include.src/M000010.html +0 -30
- data/doc/rdoc/classes/ESI/Tag/Include.src/M000011.html +0 -51
- data/doc/rdoc/classes/ESI/Tag/Include/Request.html +0 -199
- data/doc/rdoc/classes/ESI/Tag/Include/Request.src/M000012.html +0 -18
- data/doc/rdoc/classes/ESI/Tag/Include/Request.src/M000013.html +0 -44
- data/doc/rdoc/classes/ESI/Tag/Include/Request/Error.html +0 -155
- data/doc/rdoc/classes/ESI/Tag/Include/Request/Error.src/M000014.html +0 -19
- data/doc/rdoc/classes/ESI/Tag/Invalidate.html +0 -171
- data/doc/rdoc/classes/ESI/Tag/Invalidate.src/M000023.html +0 -19
- data/doc/rdoc/classes/ESI/Tag/Invalidate.src/M000024.html +0 -51
- data/doc/rdoc/classes/ESI/Tag/Invalidate.src/M000025.html +0 -19
- data/doc/rdoc/classes/ESI/Tag/Try.html +0 -154
- data/doc/rdoc/classes/ESI/Tag/Try.src/M000021.html +0 -38
- data/doc/rdoc/classes/ESI/Tag/Try.src/M000022.html +0 -18
- data/doc/rdoc/classes/MultiDirHandler.html +0 -198
- data/doc/rdoc/classes/MultiDirHandler.src/M000001.html +0 -20
- data/doc/rdoc/classes/MultiDirHandler.src/M000002.html +0 -28
- data/doc/rdoc/classes/MultiDirHandler.src/M000003.html +0 -22
- data/doc/rdoc/created.rid +0 -1
- data/doc/rdoc/files/COPYING.html +0 -167
- data/doc/rdoc/files/LICENSE.html +0 -605
- data/doc/rdoc/files/README.html +0 -361
- data/doc/rdoc/files/ext/esi/common_rl.html +0 -160
- data/doc/rdoc/files/ext/esi/esi_parser_c.html +0 -101
- data/doc/rdoc/files/ext/esi/parser_c.html +0 -101
- data/doc/rdoc/files/ext/esi/parser_h.html +0 -101
- data/doc/rdoc/files/ext/esi/parser_rl.html +0 -867
- data/doc/rdoc/files/ext/esi/test/test_c.html +0 -101
- data/doc/rdoc/files/lib/esi/cache_rb.html +0 -120
- data/doc/rdoc/files/lib/esi/config_rb.html +0 -115
- data/doc/rdoc/files/lib/esi/dispatcher_rb.html +0 -110
- data/doc/rdoc/files/lib/esi/invalidator_rb.html +0 -114
- data/doc/rdoc/files/lib/esi/logger_rb.html +0 -108
- data/doc/rdoc/files/lib/esi/parser_rb.html +0 -120
- data/doc/rdoc/files/lib/esi/processor_rb.html +0 -115
- data/doc/rdoc/files/lib/esi/proxy_rb.html +0 -123
- data/doc/rdoc/files/lib/esi/rack_adapter_rb.html +0 -117
- data/doc/rdoc/files/lib/esi/response_rb.html +0 -116
- data/doc/rdoc/files/lib/esi/router_rb.html +0 -107
- data/doc/rdoc/files/lib/esi/tag/attempt_rb.html +0 -114
- data/doc/rdoc/files/lib/esi/tag/base_rb.html +0 -114
- data/doc/rdoc/files/lib/esi/tag/container_rb.html +0 -115
- data/doc/rdoc/files/lib/esi/tag/except_rb.html +0 -114
- data/doc/rdoc/files/lib/esi/tag/include_rb.html +0 -116
- data/doc/rdoc/files/lib/esi/tag/invalidate_rb.html +0 -115
- data/doc/rdoc/files/lib/esi/tag/try_rb.html +0 -115
- data/doc/rdoc/files/lib/esi/version_rb.html +0 -101
- data/doc/rdoc/files/lib/multi_dirhandler_rb.html +0 -109
- data/doc/rdoc/fr_class_index.html +0 -57
- data/doc/rdoc/fr_file_index.html +0 -55
- data/doc/rdoc/fr_method_index.html +0 -139
- data/doc/rdoc/index.html +0 -24
- data/doc/rdoc/rdoc-style.css +0 -208
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!DOCTYPE html
|
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
-
|
|
6
|
-
<html>
|
|
7
|
-
<head>
|
|
8
|
-
<title>send_from_origin (ESI::Tag::Include)</title>
|
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
-
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
-
</head>
|
|
12
|
-
<body class="standalone-code">
|
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/esi/tag/include.rb, line 123</span>
|
|
14
|
-
123: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_from_origin</span>( <span class="ruby-identifier">src</span>, <span class="ruby-identifier">alt</span>, <span class="ruby-identifier">raise_on_error</span> )
|
|
15
|
-
124: <span class="ruby-comment cmt">#log_request "R"</span>
|
|
16
|
-
125: <span class="ruby-constant">Request</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@http_params</span>).<span class="ruby-identifier">request</span>(<span class="ruby-identifier">src</span>, <span class="ruby-ivar">@attributes</span>[<span class="ruby-value str">'timeout'</span>].<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">alt</span> ) <span class="ruby-keyword kw">do</span><span class="ruby-operator">|</span><span class="ruby-identifier">status</span>,<span class="ruby-identifier">response</span>,<span class="ruby-identifier">url</span><span class="ruby-operator">|</span>
|
|
17
|
-
126: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">status</span>
|
|
18
|
-
127: <span class="ruby-identifier">process_successful_response</span>( <span class="ruby-identifier">url</span>, <span class="ruby-identifier">status</span>, <span class="ruby-identifier">response</span> )
|
|
19
|
-
128: <span class="ruby-keyword kw">else</span>
|
|
20
|
-
129: <span class="ruby-comment cmt"># error/ check if the include has an onerror specifier</span>
|
|
21
|
-
130: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@attributes</span>[<span class="ruby-value str">'onerror'</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">'continue'</span>
|
|
22
|
-
131: <span class="ruby-comment cmt"># response is a Request::Error</span>
|
|
23
|
-
132: <span class="ruby-identifier">raise</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">message</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">raise_on_error</span>
|
|
24
|
-
133: <span class="ruby-comment cmt"># stop processing and return the error object</span>
|
|
25
|
-
134: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
26
|
-
135: <span class="ruby-keyword kw">end</span>
|
|
27
|
-
136: <span class="ruby-keyword kw">end</span>
|
|
28
|
-
137: <span class="ruby-keyword kw">end</span></pre>
|
|
29
|
-
</body>
|
|
30
|
-
</html>
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!DOCTYPE html
|
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
-
|
|
6
|
-
<html>
|
|
7
|
-
<head>
|
|
8
|
-
<title>process_successful_response (ESI::Tag::Include)</title>
|
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
-
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
-
</head>
|
|
12
|
-
<body class="standalone-code">
|
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/esi/tag/include.rb, line 139</span>
|
|
14
|
-
139: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_successful_response</span>( <span class="ruby-identifier">url</span>, <span class="ruby-identifier">status</span>, <span class="ruby-identifier">response</span> )
|
|
15
|
-
140: <span class="ruby-comment cmt"># NOTE: it's important that we cache the unprocessed markup, because we need to </span>
|
|
16
|
-
141: <span class="ruby-comment cmt"># reprocess the esi:include vars even for cached content, this way we can have cached content</span>
|
|
17
|
-
142: <span class="ruby-comment cmt"># with HTTP_COOKIE vars and avoid re-requesting content</span>
|
|
18
|
-
143: <span class="ruby-identifier">cache_buffer</span> = <span class="ruby-value str">""</span>
|
|
19
|
-
144: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parse_fragment?</span>
|
|
20
|
-
145: <span class="ruby-identifier">response</span>.<span class="ruby-identifier">read_body</span> <span class="ruby-keyword kw">do</span><span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span>
|
|
21
|
-
146: <span class="ruby-identifier">cache_buffer</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">s</span>
|
|
22
|
-
147: <span class="ruby-keyword kw">end</span>
|
|
23
|
-
148: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">cache_buffer</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp re">/<esi:/</span>)
|
|
24
|
-
149: <span class="ruby-ivar">@parser</span>.<span class="ruby-identifier">process</span> <span class="ruby-identifier">cache_buffer</span>
|
|
25
|
-
150: <span class="ruby-ivar">@parser</span>.<span class="ruby-identifier">finish</span>
|
|
26
|
-
151: <span class="ruby-keyword kw">else</span>
|
|
27
|
-
152: <span class="ruby-ivar">@output</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">cache_buffer</span>
|
|
28
|
-
153: <span class="ruby-keyword kw">end</span>
|
|
29
|
-
154: <span class="ruby-keyword kw">else</span>
|
|
30
|
-
155: <span class="ruby-identifier">response</span>.<span class="ruby-identifier">read_body</span> <span class="ruby-keyword kw">do</span><span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span>
|
|
31
|
-
156: <span class="ruby-identifier">cache_buffer</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">s</span>
|
|
32
|
-
157: <span class="ruby-keyword kw">end</span>
|
|
33
|
-
158: <span class="ruby-ivar">@output</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">cache_buffer</span>
|
|
34
|
-
159: <span class="ruby-keyword kw">end</span>
|
|
35
|
-
160:
|
|
36
|
-
161: <span class="ruby-identifier">request_uri</span> = <span class="ruby-identifier">url</span>
|
|
37
|
-
162:
|
|
38
|
-
163: <span class="ruby-identifier">cache_ttl</span> = (<span class="ruby-ivar">@attributes</span>[<span class="ruby-value str">'max-age'</span>]<span class="ruby-operator">||</span><span class="ruby-value">600</span>) <span class="ruby-comment cmt"># defaults to 600... maybe should have this be configurable?</span>
|
|
39
|
-
164: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">cache_ttl</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:match</span>) <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">cache_ttl</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp re">/\+/</span>)
|
|
40
|
-
165: <span class="ruby-identifier">total</span>=<span class="ruby-value">0</span>
|
|
41
|
-
166: <span class="ruby-identifier">cache_ttl</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">'+'</span>).<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">comp</span><span class="ruby-operator">|</span> <span class="ruby-identifier">total</span><span class="ruby-operator">+=</span><span class="ruby-identifier">comp</span>.<span class="ruby-identifier">to_i</span>}
|
|
42
|
-
167: <span class="ruby-identifier">cache_ttl</span> = <span class="ruby-identifier">total</span>
|
|
43
|
-
168: <span class="ruby-keyword kw">else</span>
|
|
44
|
-
169: <span class="ruby-identifier">cache_ttl</span> = <span class="ruby-identifier">cache_ttl</span>.<span class="ruby-identifier">to_i</span>
|
|
45
|
-
170: <span class="ruby-keyword kw">end</span>
|
|
46
|
-
171:
|
|
47
|
-
172: <span class="ruby-ivar">@cache</span>.<span class="ruby-identifier">put</span>(<span class="ruby-identifier">request_uri</span>, <span class="ruby-ivar">@http_params</span>, <span class="ruby-identifier">cache_ttl</span>, <span class="ruby-identifier">cache_buffer</span> )
|
|
48
|
-
173: <span class="ruby-comment cmt">#log_request "R #{src} #{Time.now - timer}\n"</span>
|
|
49
|
-
174: <span class="ruby-keyword kw">end</span></pre>
|
|
50
|
-
</body>
|
|
51
|
-
</html>
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!DOCTYPE html
|
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
-
|
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
-
<head>
|
|
8
|
-
<title>Class: ESI::Tag::Include::Request</title>
|
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
-
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
-
<script type="text/javascript">
|
|
13
|
-
// <![CDATA[
|
|
14
|
-
|
|
15
|
-
function popupCode( url ) {
|
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function toggleCode( id ) {
|
|
20
|
-
if ( document.getElementById )
|
|
21
|
-
elem = document.getElementById( id );
|
|
22
|
-
else if ( document.all )
|
|
23
|
-
elem = eval( "document.all." + id );
|
|
24
|
-
else
|
|
25
|
-
return false;
|
|
26
|
-
|
|
27
|
-
elemStyle = elem.style;
|
|
28
|
-
|
|
29
|
-
if ( elemStyle.display != "block" ) {
|
|
30
|
-
elemStyle.display = "block"
|
|
31
|
-
} else {
|
|
32
|
-
elemStyle.display = "none"
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Make codeblocks hidden by default
|
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
-
|
|
41
|
-
// ]]>
|
|
42
|
-
</script>
|
|
43
|
-
|
|
44
|
-
</head>
|
|
45
|
-
<body>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<div id="classHeader">
|
|
50
|
-
<table class="header-table">
|
|
51
|
-
<tr class="top-aligned-row">
|
|
52
|
-
<td><strong>Class</strong></td>
|
|
53
|
-
<td class="class-name-in-header">ESI::Tag::Include::Request</td>
|
|
54
|
-
</tr>
|
|
55
|
-
<tr class="top-aligned-row">
|
|
56
|
-
<td><strong>In:</strong></td>
|
|
57
|
-
<td>
|
|
58
|
-
<a href="../../../../files/lib/esi/tag/include_rb.html">
|
|
59
|
-
lib/esi/tag/include.rb
|
|
60
|
-
</a>
|
|
61
|
-
<br />
|
|
62
|
-
</td>
|
|
63
|
-
</tr>
|
|
64
|
-
|
|
65
|
-
<tr class="top-aligned-row">
|
|
66
|
-
<td><strong>Parent:</strong></td>
|
|
67
|
-
<td>
|
|
68
|
-
Object
|
|
69
|
-
</td>
|
|
70
|
-
</tr>
|
|
71
|
-
</table>
|
|
72
|
-
</div>
|
|
73
|
-
<!-- banner header -->
|
|
74
|
-
|
|
75
|
-
<div id="bodyContent">
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
<div id="contextContent">
|
|
80
|
-
|
|
81
|
-
<div id="description">
|
|
82
|
-
<p>
|
|
83
|
-
ir = <a href="Request.html#M000012">Request.new</a>(
|
|
84
|
-
{‘header1’=>’value1’} )
|
|
85
|
-
</p>
|
|
86
|
-
<p>
|
|
87
|
-
ir.request( ’/fragment’ ) do|status,response|
|
|
88
|
-
</p>
|
|
89
|
-
<pre>
|
|
90
|
-
if status
|
|
91
|
-
response.read_body do|str|
|
|
92
|
-
end
|
|
93
|
-
else
|
|
94
|
-
# error case
|
|
95
|
-
end
|
|
96
|
-
</pre>
|
|
97
|
-
<p>
|
|
98
|
-
end
|
|
99
|
-
</p>
|
|
100
|
-
|
|
101
|
-
</div>
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
</div>
|
|
105
|
-
|
|
106
|
-
<div id="method-list">
|
|
107
|
-
<h3 class="section-bar">Methods</h3>
|
|
108
|
-
|
|
109
|
-
<div class="name-list">
|
|
110
|
-
<a href="#M000012">new</a>
|
|
111
|
-
<a href="#M000013">request</a>
|
|
112
|
-
</div>
|
|
113
|
-
</div>
|
|
114
|
-
|
|
115
|
-
</div>
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
<!-- if includes -->
|
|
119
|
-
|
|
120
|
-
<div id="section">
|
|
121
|
-
|
|
122
|
-
<div id="class-list">
|
|
123
|
-
<h3 class="section-bar">Classes and Modules</h3>
|
|
124
|
-
|
|
125
|
-
Class <a href="Request/Error.html" class="link">ESI::Tag::Include::Request::Error</a><br />
|
|
126
|
-
|
|
127
|
-
</div>
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
<div id="attribute-list">
|
|
133
|
-
<h3 class="section-bar">Attributes</h3>
|
|
134
|
-
|
|
135
|
-
<div class="name-list">
|
|
136
|
-
<table>
|
|
137
|
-
<tr class="top-aligned-row context-row">
|
|
138
|
-
<td class="context-item-name">exception</td>
|
|
139
|
-
<td class="context-item-value"> [R] </td>
|
|
140
|
-
<td class="context-item-desc"></td>
|
|
141
|
-
</tr>
|
|
142
|
-
<tr class="top-aligned-row context-row">
|
|
143
|
-
<td class="context-item-name">overflow_index</td>
|
|
144
|
-
<td class="context-item-value"> [R] </td>
|
|
145
|
-
<td class="context-item-desc"></td>
|
|
146
|
-
</tr>
|
|
147
|
-
</table>
|
|
148
|
-
</div>
|
|
149
|
-
</div>
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
<!-- if method_list -->
|
|
154
|
-
<div id="methods">
|
|
155
|
-
<h3 class="section-bar">Public Class methods</h3>
|
|
156
|
-
|
|
157
|
-
<div id="method-M000012" class="method-detail">
|
|
158
|
-
<a name="M000012"></a>
|
|
159
|
-
|
|
160
|
-
<div class="method-heading">
|
|
161
|
-
<a href="Request.src/M000012.html" target="Code" class="method-signature"
|
|
162
|
-
onclick="popupCode('Request.src/M000012.html');return false;">
|
|
163
|
-
<span class="method-name">new</span><span class="method-args">(forward_headers)</span>
|
|
164
|
-
</a>
|
|
165
|
-
</div>
|
|
166
|
-
|
|
167
|
-
<div class="method-description">
|
|
168
|
-
</div>
|
|
169
|
-
</div>
|
|
170
|
-
|
|
171
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
|
172
|
-
|
|
173
|
-
<div id="method-M000013" class="method-detail">
|
|
174
|
-
<a name="M000013"></a>
|
|
175
|
-
|
|
176
|
-
<div class="method-heading">
|
|
177
|
-
<a href="Request.src/M000013.html" target="Code" class="method-signature"
|
|
178
|
-
onclick="popupCode('Request.src/M000013.html');return false;">
|
|
179
|
-
<span class="method-name">request</span><span class="method-args">(url, timeout = 1, alt_failover=nil, follow_limit=3) {|true, response, url| ...}</span>
|
|
180
|
-
</a>
|
|
181
|
-
</div>
|
|
182
|
-
|
|
183
|
-
<div class="method-description">
|
|
184
|
-
</div>
|
|
185
|
-
</div>
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
</div>
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
</div>
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
<div id="validator-badges">
|
|
195
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
196
|
-
</div>
|
|
197
|
-
|
|
198
|
-
</body>
|
|
199
|
-
</html>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!DOCTYPE html
|
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
-
|
|
6
|
-
<html>
|
|
7
|
-
<head>
|
|
8
|
-
<title>new (ESI::Tag::Include::Request)</title>
|
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
-
<link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
-
</head>
|
|
12
|
-
<body class="standalone-code">
|
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/esi/tag/include.rb, line 33</span>
|
|
14
|
-
33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">forward_headers</span>)
|
|
15
|
-
34: <span class="ruby-ivar">@headers</span> = <span class="ruby-identifier">forward_headers</span>
|
|
16
|
-
35: <span class="ruby-keyword kw">end</span></pre>
|
|
17
|
-
</body>
|
|
18
|
-
</html>
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!DOCTYPE html
|
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
-
|
|
6
|
-
<html>
|
|
7
|
-
<head>
|
|
8
|
-
<title>request (ESI::Tag::Include::Request)</title>
|
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
-
<link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
-
</head>
|
|
12
|
-
<body class="standalone-code">
|
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/esi/tag/include.rb, line 37</span>
|
|
14
|
-
37: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">request</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">timeout</span> = <span class="ruby-value">1</span>, <span class="ruby-identifier">alt_failover</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">follow_limit</span>=<span class="ruby-value">3</span>)
|
|
15
|
-
38: <span class="ruby-identifier">uri</span> = <span class="ruby-constant">URI</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">url</span>)
|
|
16
|
-
39: <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span>.<span class="ruby-identifier">start</span>(<span class="ruby-identifier">uri</span>.<span class="ruby-identifier">host</span>, <span class="ruby-identifier">uri</span>.<span class="ruby-identifier">port</span>) <span class="ruby-keyword kw">do</span><span class="ruby-operator">|</span><span class="ruby-identifier">http</span><span class="ruby-operator">|</span>
|
|
17
|
-
40: <span class="ruby-identifier">http</span>.<span class="ruby-identifier">read_timeout</span> = <span class="ruby-identifier">timeout</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">timeout</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">timeout</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
|
18
|
-
41: <span class="ruby-identifier">rp</span> = <span class="ruby-identifier">uri</span>.<span class="ruby-identifier">query</span> <span class="ruby-value">? </span><span class="ruby-node">"#{uri.path}?#{uri.query}"</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">uri</span>.<span class="ruby-identifier">path</span>
|
|
19
|
-
42: <span class="ruby-identifier">http</span>.<span class="ruby-identifier">request_get</span>( <span class="ruby-identifier">rp</span>, <span class="ruby-ivar">@headers</span> ) <span class="ruby-keyword kw">do</span><span class="ruby-operator">|</span><span class="ruby-identifier">response</span><span class="ruby-operator">|</span>
|
|
20
|
-
43: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">response</span>
|
|
21
|
-
44: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTPSuccess</span>
|
|
22
|
-
45: <span class="ruby-keyword kw">yield</span> <span class="ruby-keyword kw">true</span>, <span class="ruby-identifier">response</span>, <span class="ruby-identifier">url</span>
|
|
23
|
-
46: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTPRedirection</span>
|
|
24
|
-
47: <span class="ruby-identifier">ir</span> = <span class="ruby-constant">Request</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@headers</span>)
|
|
25
|
-
48: <span class="ruby-identifier">ir</span>.<span class="ruby-identifier">request</span>(<span class="ruby-identifier">response</span>[<span class="ruby-value str">'location'</span>], <span class="ruby-identifier">timeout</span>, <span class="ruby-identifier">alt_failover</span>, <span class="ruby-identifier">follow_limit</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>) <span class="ruby-keyword kw">do</span><span class="ruby-operator">|</span><span class="ruby-identifier">s</span>,<span class="ruby-identifier">r</span><span class="ruby-operator">|</span>
|
|
26
|
-
49: <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">s</span>, <span class="ruby-identifier">r</span>, <span class="ruby-identifier">response</span>[<span class="ruby-value str">'location'</span>]
|
|
27
|
-
50: <span class="ruby-keyword kw">end</span>
|
|
28
|
-
51: <span class="ruby-keyword kw">else</span>
|
|
29
|
-
52: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">alt_failover</span>
|
|
30
|
-
53: <span class="ruby-identifier">ir</span> = <span class="ruby-constant">Request</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@headers</span>)
|
|
31
|
-
54: <span class="ruby-identifier">ir</span>.<span class="ruby-identifier">request</span>(<span class="ruby-identifier">alt_failover</span>, <span class="ruby-identifier">timeout</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">follow_limit</span>) <span class="ruby-keyword kw">do</span><span class="ruby-operator">|</span><span class="ruby-identifier">s</span>,<span class="ruby-identifier">r</span><span class="ruby-operator">|</span>
|
|
32
|
-
55: <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">s</span>, <span class="ruby-identifier">r</span>, <span class="ruby-identifier">alt_failover</span>
|
|
33
|
-
56: <span class="ruby-keyword kw">end</span>
|
|
34
|
-
57: <span class="ruby-keyword kw">else</span>
|
|
35
|
-
58: <span class="ruby-keyword kw">yield</span> <span class="ruby-keyword kw">false</span>, <span class="ruby-constant">Error</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">"Failed to request fragment: #{uri.scheme}://#{uri.host}:#{uri.port}#{uri.path}"</span>, <span class="ruby-identifier">response</span>), <span class="ruby-identifier">url</span>
|
|
36
|
-
59: <span class="ruby-keyword kw">end</span>
|
|
37
|
-
60: <span class="ruby-keyword kw">end</span>
|
|
38
|
-
61: <span class="ruby-keyword kw">end</span>
|
|
39
|
-
62: <span class="ruby-keyword kw">end</span>
|
|
40
|
-
63: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Timeout</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
|
41
|
-
64: <span class="ruby-keyword kw">yield</span> <span class="ruby-keyword kw">false</span>, <span class="ruby-constant">Error</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">"Failed to request fragment: #{uri.scheme}://#{uri.host}:#{uri.port}#{uri.path}, timeout error: #{e.message}"</span>, <span class="ruby-keyword kw">nil</span>), <span class="ruby-identifier">url</span>
|
|
42
|
-
65: <span class="ruby-keyword kw">end</span></pre>
|
|
43
|
-
</body>
|
|
44
|
-
</html>
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!DOCTYPE html
|
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
-
|
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
-
<head>
|
|
8
|
-
<title>Class: ESI::Tag::Include::Request::Error</title>
|
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
-
<link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
-
<script type="text/javascript">
|
|
13
|
-
// <![CDATA[
|
|
14
|
-
|
|
15
|
-
function popupCode( url ) {
|
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function toggleCode( id ) {
|
|
20
|
-
if ( document.getElementById )
|
|
21
|
-
elem = document.getElementById( id );
|
|
22
|
-
else if ( document.all )
|
|
23
|
-
elem = eval( "document.all." + id );
|
|
24
|
-
else
|
|
25
|
-
return false;
|
|
26
|
-
|
|
27
|
-
elemStyle = elem.style;
|
|
28
|
-
|
|
29
|
-
if ( elemStyle.display != "block" ) {
|
|
30
|
-
elemStyle.display = "block"
|
|
31
|
-
} else {
|
|
32
|
-
elemStyle.display = "none"
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Make codeblocks hidden by default
|
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
-
|
|
41
|
-
// ]]>
|
|
42
|
-
</script>
|
|
43
|
-
|
|
44
|
-
</head>
|
|
45
|
-
<body>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<div id="classHeader">
|
|
50
|
-
<table class="header-table">
|
|
51
|
-
<tr class="top-aligned-row">
|
|
52
|
-
<td><strong>Class</strong></td>
|
|
53
|
-
<td class="class-name-in-header">ESI::Tag::Include::Request::Error</td>
|
|
54
|
-
</tr>
|
|
55
|
-
<tr class="top-aligned-row">
|
|
56
|
-
<td><strong>In:</strong></td>
|
|
57
|
-
<td>
|
|
58
|
-
<a href="../../../../../files/lib/esi/tag/include_rb.html">
|
|
59
|
-
lib/esi/tag/include.rb
|
|
60
|
-
</a>
|
|
61
|
-
<br />
|
|
62
|
-
</td>
|
|
63
|
-
</tr>
|
|
64
|
-
|
|
65
|
-
<tr class="top-aligned-row">
|
|
66
|
-
<td><strong>Parent:</strong></td>
|
|
67
|
-
<td>
|
|
68
|
-
Object
|
|
69
|
-
</td>
|
|
70
|
-
</tr>
|
|
71
|
-
</table>
|
|
72
|
-
</div>
|
|
73
|
-
<!-- banner header -->
|
|
74
|
-
|
|
75
|
-
<div id="bodyContent">
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
<div id="contextContent">
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
</div>
|
|
84
|
-
|
|
85
|
-
<div id="method-list">
|
|
86
|
-
<h3 class="section-bar">Methods</h3>
|
|
87
|
-
|
|
88
|
-
<div class="name-list">
|
|
89
|
-
<a href="#M000014">new</a>
|
|
90
|
-
</div>
|
|
91
|
-
</div>
|
|
92
|
-
|
|
93
|
-
</div>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
<!-- if includes -->
|
|
97
|
-
|
|
98
|
-
<div id="section">
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
<div id="attribute-list">
|
|
105
|
-
<h3 class="section-bar">Attributes</h3>
|
|
106
|
-
|
|
107
|
-
<div class="name-list">
|
|
108
|
-
<table>
|
|
109
|
-
<tr class="top-aligned-row context-row">
|
|
110
|
-
<td class="context-item-name">message</td>
|
|
111
|
-
<td class="context-item-value"> [R] </td>
|
|
112
|
-
<td class="context-item-desc"></td>
|
|
113
|
-
</tr>
|
|
114
|
-
<tr class="top-aligned-row context-row">
|
|
115
|
-
<td class="context-item-name">response</td>
|
|
116
|
-
<td class="context-item-value"> [R] </td>
|
|
117
|
-
<td class="context-item-desc"></td>
|
|
118
|
-
</tr>
|
|
119
|
-
</table>
|
|
120
|
-
</div>
|
|
121
|
-
</div>
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
<!-- if method_list -->
|
|
126
|
-
<div id="methods">
|
|
127
|
-
<h3 class="section-bar">Public Class methods</h3>
|
|
128
|
-
|
|
129
|
-
<div id="method-M000014" class="method-detail">
|
|
130
|
-
<a name="M000014"></a>
|
|
131
|
-
|
|
132
|
-
<div class="method-heading">
|
|
133
|
-
<a href="Error.src/M000014.html" target="Code" class="method-signature"
|
|
134
|
-
onclick="popupCode('Error.src/M000014.html');return false;">
|
|
135
|
-
<span class="method-name">new</span><span class="method-args">(msg,response)</span>
|
|
136
|
-
</a>
|
|
137
|
-
</div>
|
|
138
|
-
|
|
139
|
-
<div class="method-description">
|
|
140
|
-
</div>
|
|
141
|
-
</div>
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
</div>
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
</div>
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
<div id="validator-badges">
|
|
151
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
152
|
-
</div>
|
|
153
|
-
|
|
154
|
-
</body>
|
|
155
|
-
</html>
|