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

Version Path
spiderfw-0.5.13 lib/spiderfw/http/server.rb
spiderfw-0.5.12 lib/spiderfw/http/server.rb
spiderfw-0.5.11 lib/spiderfw/http/server.rb
spiderfw-0.5.10 lib/spiderfw/http/server.rb
spiderfw-0.5.9 lib/spiderfw/http/server.rb
spiderfw-0.5.7 lib/spiderfw/http/server.rb
spiderfw-0.5.6 lib/spiderfw/http/server.rb
spiderfw-0.5.5 lib/spiderfw/http/server.rb
spiderfw-0.5.4 lib/spiderfw/http/server.rb
spiderfw-0.5.3 lib/spiderfw/http/server.rb
spiderfw-0.5.2 lib/spiderfw/http/server.rb
spiderfw-0.5.1 lib/spiderfw/http/server.rb
spiderfw-0.5 lib/spiderfw/http/server.rb