Sha256: d28151a8518a149c935ed8401038d52991d0c287d846dc80023a61b46bd69b59

Contents?: true

Size: 453 Bytes

Versions: 31

Compression:

Stored size: 453 Bytes

Contents

require "webrick"
require "xmlrpc/server"

require "rabbit/xmlrpc/base"

module Rabbit
  module XMLRPC
    class Server < ::WEBrick::HTTPServer
      def initialize(front, *args)
        super(*args)
        servlet = Servlet.new(front)
        mount(PATH, servlet)
      end
    end
    
    class Servlet < ::XMLRPC::WEBrickServlet
      def initialize(front, *args)
        super(*args)
        add_handler(PREFIX, front)
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
rabbit-1.0.3 lib/rabbit/xmlrpc/server.rb
rabbit-1.0.2 lib/rabbit/xmlrpc/server.rb
rabbit-1.0.1 lib/rabbit/xmlrpc/server.rb
rabbit-1.0.0 lib/rabbit/xmlrpc/server.rb
rabbit-0.9.3 lib/rabbit/xmlrpc/server.rb
rabbit-0.9.2 lib/rabbit/xmlrpc/server.rb
rabbit-0.9.1 lib/rabbit/xmlrpc/server.rb
rabbit-0.9.0 lib/rabbit/xmlrpc/server.rb
rabbit-0.6.4 lib/rabbit/xmlrpc/server.rb
rabbit-0.6.3 lib/rabbit/xmlrpc/server.rb
rabbit-0.6.2 lib/rabbit/xmlrpc/server.rb