Sha256: 4777e61402c1839b2197aec445268f2cff621e15f1033e540e82f472336f96b5
Contents?: true
Size: 807 Bytes
Versions: 13
Compression:
Stored size: 807 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 start_server(opts) end def shutdown Spider.logger.info("Webserver shutdown"); shutdown_server end def request_received end end end; end
Version data entries
13 entries across 13 versions & 1 rubygems