Module: Nitro::XmlRpc
- Included in:
- XmlRpcService
- Defined in:
- lib/nitro/service/xmlrpc.rb
Overview
The XML-RPC protocol.
Instance Method Summary collapse
Instance Method Details
#decode_request(request) ⇒ Object
In
request
-
Raw request data.
Out
[+method+]
[+args+]
21 22 23 24 25 |
# File 'lib/nitro/service/xmlrpc.rb', line 21 def decode_request(request) method, args = XMLRPC::Marshal.load_call(request) Logger.debug "Calling XML-RPC method '#{method}', args: #{args.inspect}" if $DBG return method.gsub(/\./, '__'), args end |
#encode_response(method_name, response) ⇒ Object
27 28 29 |
# File 'lib/nitro/service/xmlrpc.rb', line 27 def encode_response(method_name, response) XMLRPC::Marshal.dump_response(response) end |