Sha256: 7714b160d3451680f82a6945b75fea54d9184b9578eb279ae83c6c45bd37d764

Contents?: true

Size: 449 Bytes

Versions: 12

Compression:

Stored size: 449 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

12 entries across 12 versions & 1 rubygems

Version Path
rabbit-3.0.3 lib/rabbit/xmlrpc/server.rb
rabbit-3.0.2 lib/rabbit/xmlrpc/server.rb
rabbit-3.0.1 lib/rabbit/xmlrpc/server.rb
rabbit-3.0.0 lib/rabbit/xmlrpc/server.rb
rabbit-2.2.1 lib/rabbit/xmlrpc/server.rb
rabbit-2.2.0 lib/rabbit/xmlrpc/server.rb
rabbit-2.1.9 lib/rabbit/xmlrpc/server.rb
rabbit-2.1.8 lib/rabbit/xmlrpc/server.rb
rabbit-2.1.7 lib/rabbit/xmlrpc/server.rb
rabbit-2.1.6 lib/rabbit/xmlrpc/server.rb
rabbit-2.1.5 lib/rabbit/xmlrpc/server.rb
rabbit-2.1.4 lib/rabbit/xmlrpc/server.rb