PK
œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Notice: ob_end_clean(): Failed to delete buffer. No buffer to delete in /home/telusvwg/public_html/da754d/index.php on line 8
| Dir : /opt/alt/ruby26/lib64/ruby/gems/2.6.0/doc/rack-3.0.8/ri/Rack/Builder/ |
| Server: Linux premium279.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 IP: 66.29.132.192 |
| Dir : //opt/alt/ruby26/lib64/ruby/gems/2.6.0/doc/rack-3.0.8/ri/Rack/Builder/map-i.ri |
U:RDoc::AnyMethod[iI"map:ETI"Rack::Builder#map;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"[Creates a route within the application. Routes under the mapped path will be sent to ;TI"athe Rack application specified by run inside the block. Other requests will be sent to the ;TI"<default application specified by run outside the block.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"class App
;TI" def call(env)
;TI"B [200, {'content-type' => 'text/plain'}, ["Hello World"]]
;TI" end
;TI" end
;TI"
;TI"class Heartbeat
;TI" def call(env)
;TI"; [200, { "content-type" => "text/plain" }, ["OK"]]
;TI" end
;TI" end
;TI"
;TI" app = Rack::Builder.app do
;TI" map '/heartbeat' do
;TI" run Heartbeat.new
;TI" end
;TI" run App.new
;TI" end
;TI"
;TI"
run app
;T:@format0o;
; [I"kThe +use+ method can also be used inside the block to specify middleware to run under a specific path:;T@o;; [I" app = Rack::Builder.app do
;TI" map '/heartbeat' do
;TI" use Middleware
;TI" run Heartbeat.new
;TI" end
;TI" run App.new
;TI" end
;T;
0o;
; [I"mThis example includes a piece of middleware which will run before +/heartbeat+ requests hit +Heartbeat+.;T@o;
; [I"hNote that providing a +path+ of +/+ will ignore any default application given in a +run+ statement ;TI"outside the block.;T:
@fileI"lib/rack/builder.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(path, &block);T@:FI"Builder;TcRDoc::NormalClass00