REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.55 KB
Close
/proc/thread-self/root/opt/alt/ruby26/lib64/ruby/gems/2.6.0/doc/rack-3.0.8/ri/Rack/Builder/map-i.ri
Text
Base64
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
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 14
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
app-c.ri
391 B
lrw-r--r--
2024-02-12 21:11:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
call-i.ri
510 B
lrw-r--r--
2024-02-12 21:11:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
cdesc-Builder.ri
1.80 KB
lrw-r--r--
2024-02-12 21:11:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
freeze_app-i.ri
393 B
lrw-r--r--
2024-02-12 21:11:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
generate_map-i.ri
417 B
lrw-r--r--
2024-02-12 21:11:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
load_file-c.ri
738 B
lrw-r--r--
2024-02-12 21:11:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
map-i.ri
1.55 KB
lrw-r--r--
2024-02-12 21:11:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
new-c.ri
501 B
lrw-r--r--
2024-02-12 21:11:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
new_from_string-c.ri
450 B
lrw-r--r--
2024-02-12 21:11:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
parse_file-c.ri
1.30 KB
lrw-r--r--
2024-02-12 21:11:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
run-i.ri
959 B
lrw-r--r--
2024-02-12 21:11:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
to_app-i.ri
333 B
lrw-r--r--
2024-02-12 21:11:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
use-i.ri
986 B
lrw-r--r--
2024-02-12 21:11:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
warmup-i.ri
659 B
lrw-r--r--
2024-02-12 21:11:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).