Sha256: a64197ed31c50dc253323d70431718a3e5d1a653593f39a2cb9b6ad128c2fa13
Contents?: true
Size: 338 Bytes
Versions: 3
Compression:
Stored size: 338 Bytes
Contents
require 'nitro/controller' module Nitro class Service < Nitro::Controller def index method, args = decode_request(request.raw_body) res = send(method, *args) response.content_type = 'text/xml' print encode_response(method, res) return :stop end end end # * George Moschovitis <gm@navel.gr>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.21.0 | lib/nitro/service.rb |
nitro-0.21.2 | lib/nitro/service.rb |
nitro-0.22.0 | lib/nitro/service.rb |