| In: |
libraries/web_controller_server.rb
|
| Parent: | Object |
Terminology:
at server start, so the server will handle request rejection of invalid requests
itself. Hence, the server will never reject a request that’s below the controller in the path.
| STATIC_MOUNTING | = | 1 |
| DYNAMIC_MOUNTING | = | 2 |
| MOUNT_TYPE | = | DYNAMIC_MOUNTING |
| SERVER_TYPE | = | (RUBY_PLATFORM =~ /mswin/ ? SimpleServer : Daemon) |
# File libraries/web_controller_server.rb, line 17
17: def initialize(port, server_type, controller_path)
18: @server = WEBrick::HTTPServer::new(:Port => port, :ServerType => server_type || SERVER_TYPE)
19: @server.logger.info "Your WEBrick server is now running on http://localhost:#{port}"
20: @controller_path = controller_path
21: mount_controllers
22: start_server
23: end