mongrel 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +2 -0
- data/CHANGELOG +2 -0
- data/Manifest +68 -0
- data/bin/mongrel_rails +55 -22
- data/examples/camping/README +3 -0
- data/examples/httpd.conf +474 -0
- data/examples/mime.yaml +3 -0
- data/examples/mongrel.conf +9 -0
- data/examples/monitrc +57 -0
- data/ext/http11/http11.c +25 -12
- data/ext/http11/http11_parser.c +456 -331
- data/ext/http11/http11_parser.h +1 -0
- data/ext/http11/http11_parser.java.rl +170 -0
- data/ext/http11/http11_parser.rl +8 -48
- data/ext/http11/http11_parser_common.rl +54 -0
- data/ext/http11/tst.h +2 -2
- data/ext/http11/tst_cleanup.c +0 -1
- data/ext/http11/tst_insert.c +29 -3
- data/ext/http11/tst_search.c +60 -55
- data/lib/mongrel.rb +68 -53
- data/lib/mongrel/cgi.rb +3 -3
- data/lib/mongrel/command.rb +1 -1
- data/lib/mongrel/configurator.rb +41 -31
- data/lib/mongrel/debug.rb +2 -5
- data/lib/mongrel/handlers.rb +23 -9
- data/lib/mongrel/mime_types.yml +2 -1
- data/lib/mongrel/rails.rb +7 -15
- data/mongrel-public_cert.pem +20 -0
- data/mongrel.gemspec +211 -0
- data/test/jruby_socket.rb +39 -0
- data/test/test_cgi_wrapper.rb +26 -0
- data/test/test_command.rb +1 -4
- data/test/test_conditional.rb +6 -18
- data/test/test_configurator.rb +5 -8
- data/test/test_debug.rb +3 -11
- data/test/test_handlers.rb +8 -10
- data/test/test_http11.rb +24 -5
- data/test/test_redirect_handler.rb +2 -6
- data/test/test_request_progress.rb +5 -9
- data/test/test_response.rb +24 -3
- data/test/test_stats.rb +1 -3
- data/test/test_uriclassifier.rb +170 -81
- data/test/test_ws.rb +25 -24
- data/test/testhelp.rb +26 -3
- data/tools/trickletest.rb +2 -2
- metadata +138 -333
- metadata.gz.sig +0 -0
- data/Rakefile +0 -117
- data/doc/rdoc/classes/IO.html +0 -170
- data/doc/rdoc/classes/IO.src/M000003.html +0 -19
- data/doc/rdoc/classes/IO.src/M000004.html +0 -19
- data/doc/rdoc/classes/Kernel.html +0 -159
- data/doc/rdoc/classes/Kernel.src/M000012.html +0 -19
- data/doc/rdoc/classes/Kernel.src/M000013.html +0 -23
- data/doc/rdoc/classes/Mongrel.html +0 -204
- data/doc/rdoc/classes/Mongrel/CGIWrapper.html +0 -404
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000115.html +0 -25
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000116.html +0 -47
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000117.html +0 -34
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000118.html +0 -32
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000119.html +0 -25
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000120.html +0 -18
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000121.html +0 -18
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000122.html +0 -18
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000123.html +0 -19
- data/doc/rdoc/classes/Mongrel/Camping.html +0 -177
- data/doc/rdoc/classes/Mongrel/Camping.src/M000041.html +0 -22
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.html +0 -184
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000042.html +0 -20
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000043.html +0 -58
- data/doc/rdoc/classes/Mongrel/Command.html +0 -132
- data/doc/rdoc/classes/Mongrel/Command/Base.html +0 -384
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000018.html +0 -24
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000019.html +0 -42
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000020.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000021.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000022.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000023.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000024.html +0 -22
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000025.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000026.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000027.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000028.html +0 -24
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000029.html +0 -24
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000030.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Registry.html +0 -192
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000031.html +0 -20
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000032.html +0 -29
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000033.html +0 -58
- data/doc/rdoc/classes/Mongrel/Configurator.html +0 -716
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000093.html +0 -27
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000094.html +0 -31
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000095.html +0 -18
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000096.html +0 -21
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000097.html +0 -20
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000098.html +0 -23
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000099.html +0 -18
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000100.html +0 -38
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000101.html +0 -19
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000102.html +0 -39
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000103.html +0 -33
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000104.html +0 -18
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000105.html +0 -24
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000106.html +0 -19
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000107.html +0 -18
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000108.html +0 -22
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000109.html +0 -22
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000110.html +0 -18
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000111.html +0 -34
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000112.html +0 -18
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000113.html +0 -36
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000114.html +0 -18
- data/doc/rdoc/classes/Mongrel/Const.html +0 -337
- data/doc/rdoc/classes/Mongrel/DeflateFilter.html +0 -188
- data/doc/rdoc/classes/Mongrel/DeflateFilter.src/M000124.html +0 -19
- data/doc/rdoc/classes/Mongrel/DeflateFilter.src/M000125.html +0 -23
- data/doc/rdoc/classes/Mongrel/DirHandler.html +0 -303
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000051.html +0 -21
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000052.html +0 -42
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000053.html +0 -38
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000054.html +0 -65
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000055.html +0 -39
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000056.html +0 -18
- data/doc/rdoc/classes/Mongrel/Error404Handler.html +0 -171
- data/doc/rdoc/classes/Mongrel/Error404Handler.src/M000126.html +0 -18
- data/doc/rdoc/classes/Mongrel/Error404Handler.src/M000127.html +0 -18
- data/doc/rdoc/classes/Mongrel/HeaderOut.html +0 -190
- data/doc/rdoc/classes/Mongrel/HeaderOut.src/M000066.html +0 -21
- data/doc/rdoc/classes/Mongrel/HeaderOut.src/M000067.html +0 -21
- data/doc/rdoc/classes/Mongrel/HttpHandler.html +0 -215
- data/doc/rdoc/classes/Mongrel/HttpHandler.src/M000072.html +0 -17
- data/doc/rdoc/classes/Mongrel/HttpHandler.src/M000073.html +0 -17
- data/doc/rdoc/classes/Mongrel/HttpHandler.src/M000074.html +0 -17
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.html +0 -210
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000014.html +0 -17
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000015.html +0 -17
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000016.html +0 -19
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000017.html +0 -17
- data/doc/rdoc/classes/Mongrel/HttpParams.html +0 -131
- data/doc/rdoc/classes/Mongrel/HttpParser.html +0 -278
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000044.html +0 -28
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000045.html +0 -29
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000046.html +0 -29
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000047.html +0 -59
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000048.html +0 -27
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000049.html +0 -27
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000050.html +0 -28
- data/doc/rdoc/classes/Mongrel/HttpParserError.html +0 -111
- data/doc/rdoc/classes/Mongrel/HttpRequest.html +0 -284
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000133.html +0 -50
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000134.html +0 -41
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000135.html +0 -29
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000136.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000137.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000138.html +0 -32
- data/doc/rdoc/classes/Mongrel/HttpResponse.html +0 -443
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000075.html +0 -25
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000076.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000077.html +0 -26
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000078.html +0 -22
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000079.html +0 -22
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000080.html +0 -22
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000081.html +0 -31
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000082.html +0 -21
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000083.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000084.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000085.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000086.html +0 -18
- data/doc/rdoc/classes/Mongrel/HttpServer.html +0 -402
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000057.html +0 -25
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000058.html +0 -100
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000059.html +0 -32
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000060.html +0 -21
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000061.html +0 -29
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000062.html +0 -65
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000063.html +0 -34
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000064.html +0 -18
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000065.html +0 -22
- data/doc/rdoc/classes/Mongrel/Rails.html +0 -112
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.html +0 -225
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000034.html +0 -37
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000035.html +0 -25
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000036.html +0 -26
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.html +0 -263
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000037.html +0 -23
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000038.html +0 -56
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000039.html +0 -20
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000040.html +0 -25
- data/doc/rdoc/classes/Mongrel/RedirectHandler.html +0 -187
- data/doc/rdoc/classes/Mongrel/RedirectHandler.src/M000131.html +0 -22
- data/doc/rdoc/classes/Mongrel/RedirectHandler.src/M000132.html +0 -27
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.html +0 -211
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000128.html +0 -24
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000129.html +0 -24
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000130.html +0 -18
- data/doc/rdoc/classes/Mongrel/Stats.html +0 -309
- data/doc/rdoc/classes/Mongrel/Stats.src/M000139.html +0 -19
- data/doc/rdoc/classes/Mongrel/Stats.src/M000140.html +0 -23
- data/doc/rdoc/classes/Mongrel/Stats.src/M000141.html +0 -26
- data/doc/rdoc/classes/Mongrel/Stats.src/M000142.html +0 -18
- data/doc/rdoc/classes/Mongrel/Stats.src/M000143.html +0 -18
- data/doc/rdoc/classes/Mongrel/Stats.src/M000144.html +0 -18
- data/doc/rdoc/classes/Mongrel/Stats.src/M000145.html +0 -23
- data/doc/rdoc/classes/Mongrel/Stats.src/M000146.html +0 -20
- data/doc/rdoc/classes/Mongrel/StatusHandler.html +0 -194
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000068.html +0 -18
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000069.html +0 -24
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000070.html +0 -42
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000071.html +0 -20
- data/doc/rdoc/classes/Mongrel/StopServer.html +0 -117
- data/doc/rdoc/classes/Mongrel/TimeoutError.html +0 -117
- data/doc/rdoc/classes/Mongrel/URIClassifier.html +0 -317
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000087.html +0 -18
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000088.html +0 -18
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000089.html +0 -39
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000090.html +0 -51
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000091.html +0 -36
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000092.html +0 -83
- data/doc/rdoc/classes/MongrelDbg.html +0 -209
- data/doc/rdoc/classes/MongrelDbg.src/M000007.html +0 -24
- data/doc/rdoc/classes/MongrelDbg.src/M000008.html +0 -20
- data/doc/rdoc/classes/MongrelDbg.src/M000009.html +0 -22
- data/doc/rdoc/classes/MongrelDbg.src/M000010.html +0 -21
- data/doc/rdoc/classes/MongrelDbg.src/M000011.html +0 -18
- data/doc/rdoc/classes/Mutex.html +0 -158
- data/doc/rdoc/classes/Mutex.src/M000001.html +0 -24
- data/doc/rdoc/classes/Mutex.src/M000002.html +0 -32
- data/doc/rdoc/classes/RequestLog.html +0 -115
- data/doc/rdoc/classes/RequestLog/Access.html +0 -151
- data/doc/rdoc/classes/RequestLog/Access.src/M000147.html +0 -19
- data/doc/rdoc/classes/RequestLog/Files.html +0 -144
- data/doc/rdoc/classes/RequestLog/Files.src/M000148.html +0 -19
- data/doc/rdoc/classes/RequestLog/Objects.html +0 -150
- data/doc/rdoc/classes/RequestLog/Objects.src/M000150.html +0 -51
- data/doc/rdoc/classes/RequestLog/Params.html +0 -144
- data/doc/rdoc/classes/RequestLog/Params.src/M000151.html +0 -19
- data/doc/rdoc/classes/RequestLog/Threads.html +0 -144
- data/doc/rdoc/classes/RequestLog/Threads.src/M000149.html +0 -34
- data/doc/rdoc/classes/TCPServer.html +0 -173
- data/doc/rdoc/classes/TCPServer.src/M000005.html +0 -19
- data/doc/rdoc/created.rid +0 -1
- data/doc/rdoc/files/COPYING.html +0 -168
- data/doc/rdoc/files/LICENSE.html +0 -168
- data/doc/rdoc/files/README.html +0 -213
- data/doc/rdoc/files/ext/http11/http11_c.html +0 -101
- data/doc/rdoc/files/lib/mongrel/camping_rb.html +0 -120
- data/doc/rdoc/files/lib/mongrel/cgi_rb.html +0 -120
- data/doc/rdoc/files/lib/mongrel/command_rb.html +0 -123
- data/doc/rdoc/files/lib/mongrel/configurator_rb.html +0 -111
- data/doc/rdoc/files/lib/mongrel/debug_rb.html +0 -122
- data/doc/rdoc/files/lib/mongrel/handlers_rb.html +0 -122
- data/doc/rdoc/files/lib/mongrel/init_rb.html +0 -121
- data/doc/rdoc/files/lib/mongrel/rails_rb.html +0 -123
- data/doc/rdoc/files/lib/mongrel/stats_rb.html +0 -113
- data/doc/rdoc/files/lib/mongrel/tcphack_rb.html +0 -113
- data/doc/rdoc/files/lib/mongrel_rb.html +0 -135
- data/doc/rdoc/files/lib/mutex_fix_rb.html +0 -108
- data/doc/rdoc/fr_class_index.html +0 -68
- data/doc/rdoc/fr_file_index.html +0 -42
- data/doc/rdoc/fr_method_index.html +0 -177
- data/doc/rdoc/index.html +0 -24
- data/doc/rdoc/rdoc-style.css +0 -208
- data/tools/rakehelp.rb +0 -117
@@ -1,34 +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>debug (Mongrel::Configurator)</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/mongrel/configurator.rb, line 312</span>
|
14
|
-
312: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">debug</span>(<span class="ruby-identifier">location</span>, <span class="ruby-identifier">what</span> = [<span class="ruby-identifier">:access</span>, <span class="ruby-identifier">:files</span>, <span class="ruby-identifier">:objects</span>, <span class="ruby-identifier">:threads</span>, <span class="ruby-identifier">:rails</span>])
|
15
|
-
313: <span class="ruby-identifier">require</span> <span class="ruby-value str">'mongrel/debug'</span>
|
16
|
-
314: <span class="ruby-identifier">handlers</span> = {
|
17
|
-
315: <span class="ruby-identifier">:access</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"/handlers/requestlog::access"</span>,
|
18
|
-
316: <span class="ruby-identifier">:files</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"/handlers/requestlog::files"</span>,
|
19
|
-
317: <span class="ruby-identifier">:objects</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"/handlers/requestlog::objects"</span>,
|
20
|
-
318: <span class="ruby-identifier">:threads</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"/handlers/requestlog::threads"</span>,
|
21
|
-
319: <span class="ruby-identifier">:rails</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"/handlers/requestlog::params"</span>
|
22
|
-
320: }
|
23
|
-
321:
|
24
|
-
322: <span class="ruby-comment cmt"># turn on the debugging infrastructure, and ObjectTracker is a pig</span>
|
25
|
-
323: <span class="ruby-constant">MongrelDbg</span>.<span class="ruby-identifier">configure</span>
|
26
|
-
324:
|
27
|
-
325: <span class="ruby-comment cmt"># now we roll through each requested debug type, turn it on and load that plugin</span>
|
28
|
-
326: <span class="ruby-identifier">what</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">type</span><span class="ruby-operator">|</span>
|
29
|
-
327: <span class="ruby-constant">MongrelDbg</span>.<span class="ruby-identifier">begin_trace</span> <span class="ruby-identifier">type</span>
|
30
|
-
328: <span class="ruby-identifier">uri</span> <span class="ruby-identifier">location</span>, <span class="ruby-identifier">:handler</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">plugin</span>(<span class="ruby-identifier">handlers</span>[<span class="ruby-identifier">type</span>])
|
31
|
-
329: <span class="ruby-keyword kw">end</span>
|
32
|
-
330: <span class="ruby-keyword kw">end</span></pre>
|
33
|
-
</body>
|
34
|
-
</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>run_config (Mongrel::Configurator)</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/mongrel/configurator.rb, line 336</span>
|
14
|
-
336: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_config</span>(<span class="ruby-identifier">script</span>)
|
15
|
-
337: <span class="ruby-identifier">open</span>(<span class="ruby-identifier">script</span>) {<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">eval</span>(<span class="ruby-identifier">f</span>.<span class="ruby-identifier">read</span>, <span class="ruby-identifier">proc</span> {<span class="ruby-keyword kw">self</span>}) }
|
16
|
-
338: <span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,36 +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>setup_signals (Mongrel::Configurator)</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/mongrel/configurator.rb, line 350</span>
|
14
|
-
350: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup_signals</span>(<span class="ruby-identifier">options</span>={})
|
15
|
-
351: <span class="ruby-identifier">ops</span> = <span class="ruby-identifier">resolve_defaults</span>(<span class="ruby-identifier">options</span>)
|
16
|
-
352:
|
17
|
-
353: <span class="ruby-comment cmt"># forced shutdown, even if previously restarted (actually just like TERM but for CTRL-C)</span>
|
18
|
-
354: <span class="ruby-identifier">trap</span>(<span class="ruby-value str">"INT"</span>) { <span class="ruby-identifier">log</span> <span class="ruby-value str">"INT signal received."</span>; <span class="ruby-identifier">stop</span>(<span class="ruby-keyword kw">false</span>) }
|
19
|
-
355:
|
20
|
-
356: <span class="ruby-comment cmt"># clean up the pid file always</span>
|
21
|
-
357: <span class="ruby-identifier">at_exit</span> { <span class="ruby-identifier">remove_pid_file</span> }
|
22
|
-
358:
|
23
|
-
359: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp re">/mswin/</span>
|
24
|
-
360: <span class="ruby-comment cmt"># graceful shutdown</span>
|
25
|
-
361: <span class="ruby-identifier">trap</span>(<span class="ruby-value str">"TERM"</span>) { <span class="ruby-identifier">log</span> <span class="ruby-value str">"TERM signal received."</span>; <span class="ruby-identifier">stop</span> }
|
26
|
-
362: <span class="ruby-identifier">trap</span>(<span class="ruby-value str">"USR1"</span>) { <span class="ruby-identifier">log</span> <span class="ruby-node">"USR1 received, toggling $mongrel_debug_client to #{!$mongrel_debug_client}"</span>; <span class="ruby-identifier">$mongrel_debug_client</span> = <span class="ruby-operator">!</span><span class="ruby-identifier">$mongrel_debug_client</span> }
|
27
|
-
363: <span class="ruby-comment cmt"># restart</span>
|
28
|
-
364: <span class="ruby-identifier">trap</span>(<span class="ruby-value str">"USR2"</span>) { <span class="ruby-identifier">log</span> <span class="ruby-value str">"USR2 signal received."</span>; <span class="ruby-identifier">stop</span>(<span class="ruby-keyword kw">true</span>) }
|
29
|
-
365:
|
30
|
-
366: <span class="ruby-identifier">log</span> <span class="ruby-value str">"Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart)."</span>
|
31
|
-
367: <span class="ruby-keyword kw">else</span>
|
32
|
-
368: <span class="ruby-identifier">log</span> <span class="ruby-value str">"Signals ready. INT => stop (no restart)."</span>
|
33
|
-
369: <span class="ruby-keyword kw">end</span>
|
34
|
-
370: <span class="ruby-keyword kw">end</span></pre>
|
35
|
-
</body>
|
36
|
-
</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>log (Mongrel::Configurator)</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/mongrel/configurator.rb, line 373</span>
|
14
|
-
373: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log</span>(<span class="ruby-identifier">msg</span>)
|
15
|
-
374: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">print</span> <span class="ruby-value str">"** "</span>, <span class="ruby-identifier">msg</span>, <span class="ruby-value str">"\n"</span>
|
16
|
-
375: <span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,337 +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>Module: Mongrel::Const</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>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">Mongrel::Const</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/mongrel_rb.html">
|
59
|
-
lib/mongrel.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
</table>
|
66
|
-
</div>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<div id="contextContent">
|
74
|
-
|
75
|
-
<div id="description">
|
76
|
-
<p>
|
77
|
-
Frequently used constants when constructing requests or responses. Many
|
78
|
-
times the constant just refers to a string with the same contents. Using
|
79
|
-
these constants gave about a 3% to 10% performance improvement over using
|
80
|
-
the strings directly. Symbols did not really improve things much compared
|
81
|
-
to constants.
|
82
|
-
</p>
|
83
|
-
<p>
|
84
|
-
While <a href="../Mongrel.html">Mongrel</a> does try to emulate the CGI/1.2
|
85
|
-
protocol, it does not use the REMOTE_IDENT, REMOTE_USER, or REMOTE_HOST
|
86
|
-
parameters since those are either a security problem or too taxing on
|
87
|
-
performance.
|
88
|
-
</p>
|
89
|
-
|
90
|
-
</div>
|
91
|
-
|
92
|
-
|
93
|
-
</div>
|
94
|
-
|
95
|
-
|
96
|
-
</div>
|
97
|
-
|
98
|
-
|
99
|
-
<!-- if includes -->
|
100
|
-
|
101
|
-
<div id="section">
|
102
|
-
|
103
|
-
|
104
|
-
<div id="constants-list">
|
105
|
-
<h3 class="section-bar">Constants</h3>
|
106
|
-
|
107
|
-
<div class="name-list">
|
108
|
-
<table summary="Constants">
|
109
|
-
<tr class="top-aligned-row context-row">
|
110
|
-
<td class="context-item-name">DATE</td>
|
111
|
-
<td>=</td>
|
112
|
-
<td class="context-item-value">"Date".freeze</td>
|
113
|
-
</tr>
|
114
|
-
<tr class="top-aligned-row context-row">
|
115
|
-
<td class="context-item-name">PATH_INFO</td>
|
116
|
-
<td>=</td>
|
117
|
-
<td class="context-item-value">"PATH_INFO".freeze</td>
|
118
|
-
<td width="3em"> </td>
|
119
|
-
<td class="context-item-desc">
|
120
|
-
This is the part of the path after the SCRIPT_NAME. <a
|
121
|
-
href="URIClassifier.html">URIClassifier</a> will determine this.
|
122
|
-
|
123
|
-
</td>
|
124
|
-
</tr>
|
125
|
-
<tr class="top-aligned-row context-row">
|
126
|
-
<td class="context-item-name">SCRIPT_NAME</td>
|
127
|
-
<td>=</td>
|
128
|
-
<td class="context-item-value">"SCRIPT_NAME".freeze</td>
|
129
|
-
<td width="3em"> </td>
|
130
|
-
<td class="context-item-desc">
|
131
|
-
This is the initial part that your handler is identified as by <a
|
132
|
-
href="URIClassifier.html">URIClassifier</a>.
|
133
|
-
|
134
|
-
</td>
|
135
|
-
</tr>
|
136
|
-
<tr class="top-aligned-row context-row">
|
137
|
-
<td class="context-item-name">REQUEST_URI</td>
|
138
|
-
<td>=</td>
|
139
|
-
<td class="context-item-value">'REQUEST_URI'.freeze</td>
|
140
|
-
<td width="3em"> </td>
|
141
|
-
<td class="context-item-desc">
|
142
|
-
The original URI requested by the client. Passed to <a
|
143
|
-
href="URIClassifier.html">URIClassifier</a> to build PATH_INFO and
|
144
|
-
SCRIPT_NAME.
|
145
|
-
|
146
|
-
</td>
|
147
|
-
</tr>
|
148
|
-
<tr class="top-aligned-row context-row">
|
149
|
-
<td class="context-item-name">REQUEST_PATH</td>
|
150
|
-
<td>=</td>
|
151
|
-
<td class="context-item-value">'REQUEST_PATH'.freeze</td>
|
152
|
-
</tr>
|
153
|
-
<tr class="top-aligned-row context-row">
|
154
|
-
<td class="context-item-name">MONGREL_VERSION</td>
|
155
|
-
<td>=</td>
|
156
|
-
<td class="context-item-value">"1.0.1".freeze</td>
|
157
|
-
</tr>
|
158
|
-
<tr class="top-aligned-row context-row">
|
159
|
-
<td class="context-item-name">MONGREL_TMP_BASE</td>
|
160
|
-
<td>=</td>
|
161
|
-
<td class="context-item-value">"mongrel".freeze</td>
|
162
|
-
</tr>
|
163
|
-
<tr class="top-aligned-row context-row">
|
164
|
-
<td class="context-item-name">ERROR_404_RESPONSE</td>
|
165
|
-
<td>=</td>
|
166
|
-
<td class="context-item-value">"HTTP/1.1 404 Not Found\r\nConnection: close\r\nServer: Mongrel #{MONGREL_VERSION}\r\n\r\nNOT FOUND".freeze</td>
|
167
|
-
<td width="3em"> </td>
|
168
|
-
<td class="context-item-desc">
|
169
|
-
The standard empty 404 response for bad requests. Use Error4040Handler for
|
170
|
-
custom stuff.
|
171
|
-
|
172
|
-
</td>
|
173
|
-
</tr>
|
174
|
-
<tr class="top-aligned-row context-row">
|
175
|
-
<td class="context-item-name">CONTENT_LENGTH</td>
|
176
|
-
<td>=</td>
|
177
|
-
<td class="context-item-value">"CONTENT_LENGTH".freeze</td>
|
178
|
-
</tr>
|
179
|
-
<tr class="top-aligned-row context-row">
|
180
|
-
<td class="context-item-name">ERROR_503_RESPONSE</td>
|
181
|
-
<td>=</td>
|
182
|
-
<td class="context-item-value">"HTTP/1.1 503 Service Unavailable\r\n\r\nBUSY".freeze</td>
|
183
|
-
<td width="3em"> </td>
|
184
|
-
<td class="context-item-desc">
|
185
|
-
A common header for indicating the server is too busy. Not used yet.
|
186
|
-
|
187
|
-
</td>
|
188
|
-
</tr>
|
189
|
-
<tr class="top-aligned-row context-row">
|
190
|
-
<td class="context-item-name">CHUNK_SIZE</td>
|
191
|
-
<td>=</td>
|
192
|
-
<td class="context-item-value">(16 * 1024)</td>
|
193
|
-
<td width="3em"> </td>
|
194
|
-
<td class="context-item-desc">
|
195
|
-
The basic max request size we‘ll try to read.
|
196
|
-
|
197
|
-
</td>
|
198
|
-
</tr>
|
199
|
-
<tr class="top-aligned-row context-row">
|
200
|
-
<td class="context-item-name">MAX_HEADER</td>
|
201
|
-
<td>=</td>
|
202
|
-
<td class="context-item-value">1024 * (80 + 32)</td>
|
203
|
-
<td width="3em"> </td>
|
204
|
-
<td class="context-item-desc">
|
205
|
-
This is the maximum header that is allowed before a client is booted. The
|
206
|
-
parser detects this, but we‘d also like to do this as well.
|
207
|
-
|
208
|
-
</td>
|
209
|
-
</tr>
|
210
|
-
<tr class="top-aligned-row context-row">
|
211
|
-
<td class="context-item-name">MAX_BODY</td>
|
212
|
-
<td>=</td>
|
213
|
-
<td class="context-item-value">MAX_HEADER</td>
|
214
|
-
<td width="3em"> </td>
|
215
|
-
<td class="context-item-desc">
|
216
|
-
Maximum request body size before it is moved out of memory and into a
|
217
|
-
tempfile for reading.
|
218
|
-
|
219
|
-
</td>
|
220
|
-
</tr>
|
221
|
-
<tr class="top-aligned-row context-row">
|
222
|
-
<td class="context-item-name">STATUS_FORMAT</td>
|
223
|
-
<td>=</td>
|
224
|
-
<td class="context-item-value">"HTTP/1.1 %d %s\r\nConnection: close\r\n".freeze</td>
|
225
|
-
<td width="3em"> </td>
|
226
|
-
<td class="context-item-desc">
|
227
|
-
A frozen format for this is about 15% faster
|
228
|
-
|
229
|
-
</td>
|
230
|
-
</tr>
|
231
|
-
<tr class="top-aligned-row context-row">
|
232
|
-
<td class="context-item-name">CONTENT_TYPE</td>
|
233
|
-
<td>=</td>
|
234
|
-
<td class="context-item-value">"Content-Type".freeze</td>
|
235
|
-
</tr>
|
236
|
-
<tr class="top-aligned-row context-row">
|
237
|
-
<td class="context-item-name">LAST_MODIFIED</td>
|
238
|
-
<td>=</td>
|
239
|
-
<td class="context-item-value">"Last-Modified".freeze</td>
|
240
|
-
</tr>
|
241
|
-
<tr class="top-aligned-row context-row">
|
242
|
-
<td class="context-item-name">ETAG</td>
|
243
|
-
<td>=</td>
|
244
|
-
<td class="context-item-value">"ETag".freeze</td>
|
245
|
-
</tr>
|
246
|
-
<tr class="top-aligned-row context-row">
|
247
|
-
<td class="context-item-name">SLASH</td>
|
248
|
-
<td>=</td>
|
249
|
-
<td class="context-item-value">"/".freeze</td>
|
250
|
-
</tr>
|
251
|
-
<tr class="top-aligned-row context-row">
|
252
|
-
<td class="context-item-name">REQUEST_METHOD</td>
|
253
|
-
<td>=</td>
|
254
|
-
<td class="context-item-value">"REQUEST_METHOD".freeze</td>
|
255
|
-
</tr>
|
256
|
-
<tr class="top-aligned-row context-row">
|
257
|
-
<td class="context-item-name">GET</td>
|
258
|
-
<td>=</td>
|
259
|
-
<td class="context-item-value">"GET".freeze</td>
|
260
|
-
</tr>
|
261
|
-
<tr class="top-aligned-row context-row">
|
262
|
-
<td class="context-item-name">HEAD</td>
|
263
|
-
<td>=</td>
|
264
|
-
<td class="context-item-value">"HEAD".freeze</td>
|
265
|
-
</tr>
|
266
|
-
<tr class="top-aligned-row context-row">
|
267
|
-
<td class="context-item-name">ETAG_FORMAT</td>
|
268
|
-
<td>=</td>
|
269
|
-
<td class="context-item-value">"\"%x-%x-%x\"".freeze</td>
|
270
|
-
<td width="3em"> </td>
|
271
|
-
<td class="context-item-desc">
|
272
|
-
ETag is based on the apache standard of hex mtime-size-inode (inode is 0 on
|
273
|
-
win32)
|
274
|
-
|
275
|
-
</td>
|
276
|
-
</tr>
|
277
|
-
<tr class="top-aligned-row context-row">
|
278
|
-
<td class="context-item-name">HEADER_FORMAT</td>
|
279
|
-
<td>=</td>
|
280
|
-
<td class="context-item-value">"%s: %s\r\n".freeze</td>
|
281
|
-
</tr>
|
282
|
-
<tr class="top-aligned-row context-row">
|
283
|
-
<td class="context-item-name">LINE_END</td>
|
284
|
-
<td>=</td>
|
285
|
-
<td class="context-item-value">"\r\n".freeze</td>
|
286
|
-
</tr>
|
287
|
-
<tr class="top-aligned-row context-row">
|
288
|
-
<td class="context-item-name">REMOTE_ADDR</td>
|
289
|
-
<td>=</td>
|
290
|
-
<td class="context-item-value">"REMOTE_ADDR".freeze</td>
|
291
|
-
</tr>
|
292
|
-
<tr class="top-aligned-row context-row">
|
293
|
-
<td class="context-item-name">HTTP_X_FORWARDED_FOR</td>
|
294
|
-
<td>=</td>
|
295
|
-
<td class="context-item-value">"HTTP_X_FORWARDED_FOR".freeze</td>
|
296
|
-
</tr>
|
297
|
-
<tr class="top-aligned-row context-row">
|
298
|
-
<td class="context-item-name">HTTP_IF_MODIFIED_SINCE</td>
|
299
|
-
<td>=</td>
|
300
|
-
<td class="context-item-value">"HTTP_IF_MODIFIED_SINCE".freeze</td>
|
301
|
-
</tr>
|
302
|
-
<tr class="top-aligned-row context-row">
|
303
|
-
<td class="context-item-name">HTTP_IF_NONE_MATCH</td>
|
304
|
-
<td>=</td>
|
305
|
-
<td class="context-item-value">"HTTP_IF_NONE_MATCH".freeze</td>
|
306
|
-
</tr>
|
307
|
-
<tr class="top-aligned-row context-row">
|
308
|
-
<td class="context-item-name">REDIRECT</td>
|
309
|
-
<td>=</td>
|
310
|
-
<td class="context-item-value">"HTTP/1.1 302 Found\r\nLocation: %s\r\nConnection: close\r\n\r\n".freeze</td>
|
311
|
-
</tr>
|
312
|
-
<tr class="top-aligned-row context-row">
|
313
|
-
<td class="context-item-name">HOST</td>
|
314
|
-
<td>=</td>
|
315
|
-
<td class="context-item-value">"HOST".freeze</td>
|
316
|
-
</tr>
|
317
|
-
</table>
|
318
|
-
</div>
|
319
|
-
</div>
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
<!-- if method_list -->
|
327
|
-
|
328
|
-
|
329
|
-
</div>
|
330
|
-
|
331
|
-
|
332
|
-
<div id="validator-badges">
|
333
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
334
|
-
</div>
|
335
|
-
|
336
|
-
</body>
|
337
|
-
</html>
|
@@ -1,188 +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: Mongrel::DeflateFilter</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">Mongrel::DeflateFilter</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/mongrel/handlers_rb.html">
|
59
|
-
lib/mongrel/handlers.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
|
-
<a href="HttpHandler.html">
|
69
|
-
HttpHandler
|
70
|
-
</a>
|
71
|
-
</td>
|
72
|
-
</tr>
|
73
|
-
</table>
|
74
|
-
</div>
|
75
|
-
<!-- banner header -->
|
76
|
-
|
77
|
-
<div id="bodyContent">
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<div id="contextContent">
|
82
|
-
|
83
|
-
<div id="description">
|
84
|
-
<p>
|
85
|
-
When added to a config script (-S in mongrel_rails) it will look at the
|
86
|
-
client‘s allowed response types and then gzip compress anything that
|
87
|
-
is going out.
|
88
|
-
</p>
|
89
|
-
<p>
|
90
|
-
Valid option is :always_deflate => false which tells the handler to
|
91
|
-
deflate everything even if the client can‘t handle it.
|
92
|
-
</p>
|
93
|
-
|
94
|
-
</div>
|
95
|
-
|
96
|
-
|
97
|
-
</div>
|
98
|
-
|
99
|
-
<div id="method-list">
|
100
|
-
<h3 class="section-bar">Methods</h3>
|
101
|
-
|
102
|
-
<div class="name-list">
|
103
|
-
<a href="#M000124">new</a>
|
104
|
-
<a href="#M000125">process</a>
|
105
|
-
</div>
|
106
|
-
</div>
|
107
|
-
|
108
|
-
</div>
|
109
|
-
|
110
|
-
|
111
|
-
<!-- if includes -->
|
112
|
-
<div id="includes">
|
113
|
-
<h3 class="section-bar">Included Modules</h3>
|
114
|
-
|
115
|
-
<div id="includes-list">
|
116
|
-
<span class="include-name">Zlib</span>
|
117
|
-
</div>
|
118
|
-
</div>
|
119
|
-
|
120
|
-
<div id="section">
|
121
|
-
|
122
|
-
|
123
|
-
<div id="constants-list">
|
124
|
-
<h3 class="section-bar">Constants</h3>
|
125
|
-
|
126
|
-
<div class="name-list">
|
127
|
-
<table summary="Constants">
|
128
|
-
<tr class="top-aligned-row context-row">
|
129
|
-
<td class="context-item-name">HTTP_ACCEPT_ENCODING</td>
|
130
|
-
<td>=</td>
|
131
|
-
<td class="context-item-value">"HTTP_ACCEPT_ENCODING"</td>
|
132
|
-
</tr>
|
133
|
-
</table>
|
134
|
-
</div>
|
135
|
-
</div>
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
<!-- if method_list -->
|
143
|
-
<div id="methods">
|
144
|
-
<h3 class="section-bar">Public Class methods</h3>
|
145
|
-
|
146
|
-
<div id="method-M000124" class="method-detail">
|
147
|
-
<a name="M000124"></a>
|
148
|
-
|
149
|
-
<div class="method-heading">
|
150
|
-
<a href="DeflateFilter.src/M000124.html" target="Code" class="method-signature"
|
151
|
-
onclick="popupCode('DeflateFilter.src/M000124.html');return false;">
|
152
|
-
<span class="method-name">new</span><span class="method-args">(ops={})</span>
|
153
|
-
</a>
|
154
|
-
</div>
|
155
|
-
|
156
|
-
<div class="method-description">
|
157
|
-
</div>
|
158
|
-
</div>
|
159
|
-
|
160
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
161
|
-
|
162
|
-
<div id="method-M000125" class="method-detail">
|
163
|
-
<a name="M000125"></a>
|
164
|
-
|
165
|
-
<div class="method-heading">
|
166
|
-
<a href="DeflateFilter.src/M000125.html" target="Code" class="method-signature"
|
167
|
-
onclick="popupCode('DeflateFilter.src/M000125.html');return false;">
|
168
|
-
<span class="method-name">process</span><span class="method-args">(request, response)</span>
|
169
|
-
</a>
|
170
|
-
</div>
|
171
|
-
|
172
|
-
<div class="method-description">
|
173
|
-
</div>
|
174
|
-
</div>
|
175
|
-
|
176
|
-
|
177
|
-
</div>
|
178
|
-
|
179
|
-
|
180
|
-
</div>
|
181
|
-
|
182
|
-
|
183
|
-
<div id="validator-badges">
|
184
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
185
|
-
</div>
|
186
|
-
|
187
|
-
</body>
|
188
|
-
</html>
|