Sha256: 72584506ea8d6ad4bfd6d2f672191a8ecd2a8f00991fa2f24c7213b61eff1ebc

Contents?: true

Size: 250 Bytes

Versions: 2

Compression:

Stored size: 250 Bytes

Contents

require 'reel'

module Virginia
	class LoggingHandler
		def initialize(host, port)
			Reel::Server.supervise(host, port) do |connection|
				connection.each_request do |request|
					request.respond :ok, "Hello, world!"
				end
			end
		end
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
virginia-0.2.1 lib/virginia/logging_handler.rb
virginia-0.2.0 lib/virginia/logging_handler.rb