[英]how to use Puma/ruby to implement xml-rpc server?
Is there any way to build xml-rpc
server on top of puma
application server? 有什么方法可以在
puma
应用程序服务器之上构建xml-rpc
服务器吗? By default require xmlrpc/server
uses webrick
. 默认情况下,
require xmlrpc/server
使用webrick
。
the builtin ruby xmlrpc/server
library is using the builtin webserver library webrick
. 内置的ruby
xmlrpc/server
库正在使用内置的webserver库webrick
。 AFAIK there is no extensibility in the regard of switching the webserver implementation. AFAIK在切换Web服务器实现方面没有可扩展性。
reading your other question i assume that you probably need to deploy the xmlrpc server alongside your rails application. 阅读您的其他问题,我认为您可能需要在Rails应用程序旁边部署xmlrpc服务器。
the library comes with different implementations ie cgi, mod-ruby etc, maybe one of those is helpful to get started: https://github.com/ruby/xmlrpc/blob/master/lib/xmlrpc/server.rb 该库带有不同的实现,例如cgi,mod-ruby等,也许其中的一种对入门很有帮助: https : //github.com/ruby/xmlrpc/blob/master/lib/xmlrpc/server.rb
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.