Sha256: 2b729655bad7fb302a43064e811d4743ad5aabbb9a72ae9a7405e50b4606b374
Contents?: true
Size: 358 Bytes
Versions: 2
Compression:
Stored size: 358 Bytes
Contents
require 'nitro/controller' module Nitro # A Web Service endpoint. This is a specialized controller. 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.41.0 | lib/nitro/service.rb |
nitro-0.40.0 | lib/nitro/service.rb |