PHP 8.2.31
Preview: cdesc-Builder.ri Size: 1.22 KB
//proc/thread-self/root/opt/alt/ruby19/lib64/ruby/gems/1.9.1/doc/rack-1.6.4/ri/Rack/Builder/cdesc-Builder.ri

U:RDoc::NormalClass[iI"Builder:EFI"Rack::Builder;FI"Object;Fo:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"GRack::Builder implements a small DSL to iteratively construct Rack;FI"applications.;Fo:RDoc::Markup::BlankLineo;	;[I"
Example:;F@o:RDoc::Markup::Verbatim;[I"require 'rack/lobster'
;FI" app = Rack::Builder.new do
;FI"  use Rack::CommonLogger
;FI"   use Rack::ShowExceptions
;FI"  map "/lobster" do
;FI"    use Rack::Lint
;FI"    run Rack::Lobster.new
;FI"  end
;FI"	end
;FI"
;FI"
run app
;Fo;	;[I"Or;F@o;;[I" app = Rack::Builder.app do
;FI"  use Rack::CommonLogger
;FI"L  run lambda { |env| [200, {'Content-Type' => 'text/plain'}, ['OK']] }
;FI"	end
;FI"
;FI"
run app
;Fo;	;[I"L+use+ adds middleware to the stack, +run+ dispatches to an application.;FI"GYou can use +map+ to construct a Rack::URLMap in a convenient way.;F:
@fileI"lib/rack/builder.rb;F;0[[[[[I"
class;F[[:public[	[I"app;F@2[I"new;F@2[I"new_from_string;F@2[I"parse_file;F@2[:protected[[:private[[I"
instance;F[[;
[[I"	call;F@2[I"map;F@2[I"run;F@2[I"to_app;F@2[I"use;F@2[I"warmup;F@2[;[[;[

Directory Contents

Dirs: 0 × Files: 11

Name Size Perms Modified Actions
177 B lrw-r--r-- 2019-12-05 22:59:32
Edit Download
156 B lrw-r--r-- 2019-12-05 22:59:32
Edit Download
1.22 KB lrw-r--r-- 2019-12-05 22:59:32
Edit Download
738 B lrw-r--r-- 2019-12-05 22:59:32
Edit Download
176 B lrw-r--r-- 2019-12-05 22:59:32
Edit Download
207 B lrw-r--r-- 2019-12-05 22:59:32
Edit Download
200 B lrw-r--r-- 2019-12-05 22:59:32
Edit Download
688 B lrw-r--r-- 2019-12-05 22:59:32
Edit Download
157 B lrw-r--r-- 2019-12-05 22:59:32
Edit Download
891 B lrw-r--r-- 2019-12-05 22:59:32
Edit Download
485 B lrw-r--r-- 2019-12-05 22:59:32
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).