Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium163.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : infihsqw ( 644)
PHP Version : 8.1.29
Disable Function : NONE
Directory :  /opt/cpanel/ea-ruby27/root/usr/share/gems/doc/rack-2.2.8/ri/Rack/Builder/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/cpanel/ea-ruby27/root/usr/share/gems/doc/rack-2.2.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::BlankLineo:RDoc::Markup::Verbatim;	[I"Rack::Builder.app do
;TI"  map '/heartbeat' do
;TI"    run Heartbeat
;TI"  end
;TI"  run App
;TI"	end
;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"Rack::Builder.app do
;TI"  map '/heartbeat' do
;TI"    use Middleware
;TI"    run Heartbeat
;TI"  end
;TI"  run App
;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

ZeroDay Forums Mini