I'd like to write a ruleset that can respond to webhook events with raw data. The event might come in from a URL like the following:
http://cs.kobj.net/blue/event/rest/echo/a163x85/?a163x85:kynetx_app_version=dev&body=hi%20there
I can use the send_directive()
action, but that returns a lot of JSON that I don't necessarily want:
// KNS Fri Apr 8 19:40:40 2011
{"directives":[{"options":{"body":"hi there"},"name":"echo","meta":{"rule_name":"echo","txn_id":"154CEDCC-6218-11E0-9E71-726A5E50CE3F","rid":"a163x85"}}]}
Is there a way to respond with just raw data, rather than with a whole directive structure?