Sha256: 041e7628b44b734960e602630d76a3abba5c74e0f27dddcd77a087f1b95d5ead
Contents?: true
Size: 894 Bytes
Versions: 6
Compression:
Stored size: 894 Bytes
Contents
require 'spiderfw/controller/http_controller' module Spider; module HTTP class Server @supports = { :chunked_request => false, :ssl => false } def self.supports?(capability) @supports[capability] end def options(opts={}) defaults = { :host => '0.0.0.0', :port => 8080 } return defaults.merge(opts) end def start(opts={}) @options = opts Spider.logger.info{ "Routes: \n"+Spider::HomeController.print_app_routes } start_server(opts) end def shutdown Spider.logger.info("Webserver shutdown"); shutdown_server end def request_received end end end; end
Version data entries
6 entries across 6 versions & 1 rubygems