D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby18
/
lib64
/
ruby
/
gems
/
1.8
/
doc
/
rack-1.6.1
/
ri
/
Rack
/
Server
/
Filename :
new-c.yaml
back
Copy
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: "Options may include:" - !ruby/object:SM::Flow::LIST contents: - !ruby/struct:SM::Flow::LI label: "*" body: ":app" - !ruby/struct:SM::Flow::VERB body: " a rack application to run (overrides :config)\n" - !ruby/struct:SM::Flow::LI label: "*" body: ":config" - !ruby/struct:SM::Flow::VERB body: " a rackup configuration file path to load (.ru)\n" - !ruby/struct:SM::Flow::LI label: "*" body: ":environment" - !ruby/struct:SM::Flow::VERB body: " this selects the middleware that will be wrapped around\n your application. Default options available are:\n - development: CommonLogger, ShowExceptions, and Lint\n - deployment: CommonLogger\n - none: no extra middleware\n note: when the server is a cgi server, CommonLogger is not included.\n" - !ruby/struct:SM::Flow::LI label: "*" body: ":server" - !ruby/struct:SM::Flow::VERB body: " choose a specific Rack::Handler, e.g. cgi, fcgi, webrick\n" - !ruby/struct:SM::Flow::LI label: "*" body: ":daemonize" - !ruby/struct:SM::Flow::VERB body: " if true, the server will daemonize itself (fork, detach, etc)\n" - !ruby/struct:SM::Flow::LI label: "*" body: ":pid" - !ruby/struct:SM::Flow::VERB body: " path to write a pid file after daemonize\n" - !ruby/struct:SM::Flow::LI label: "*" body: ":Host" - !ruby/struct:SM::Flow::VERB body: " the host address to bind to (used by supporting Rack::Handler)\n" - !ruby/struct:SM::Flow::LI label: "*" body: ":Port" - !ruby/struct:SM::Flow::VERB body: " the port to bind to (used by supporting Rack::Handler)\n" - !ruby/struct:SM::Flow::LI label: "*" body: ":AccessLog" - !ruby/struct:SM::Flow::VERB body: " webrick access log options (or supporting Rack::Handler)\n" - !ruby/struct:SM::Flow::LI label: "*" body: ":debug" - !ruby/struct:SM::Flow::VERB body: " turn on debug output ($DEBUG = true)\n" - !ruby/struct:SM::Flow::LI label: "*" body: ":warn" - !ruby/struct:SM::Flow::VERB body: " turn on warnings ($-w = true)\n" - !ruby/struct:SM::Flow::LI label: "*" body: ":include" - !ruby/struct:SM::Flow::VERB body: " add given paths to $LOAD_PATH\n" - !ruby/struct:SM::Flow::LI label: "*" body: ":require" - !ruby/struct:SM::Flow::VERB body: " require the given libraries\n" type: :BULLET full_name: Rack::Server::new is_singleton: true name: new params: (options = nil) visibility: public