| Server IP : 109.234.162.214 / Your IP : 216.73.216.112 Web Server : Apache System : Linux servd162214.srv.odns.fr 4.18.0-372.26.1.lve.1.el8.x86_64 #1 SMP Fri Sep 16 14:08:19 EDT 2022 x86_64 User : carpe ( 1178) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/ruby19/lib64/ruby/gems/1.9.1/doc/rack-1.6.4/ri/Rack/Builder/ |
Upload File : |
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::BlankLine o; ;[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[;[ [;[