-
Notifications
You must be signed in to change notification settings - Fork 8
Listeners: http
TekMonks edited this page Mar 11, 2019
·
2 revisions
The HTTP Listener
The HTTP listener node is used to implement http / SOAP oriented flows. It starts an HTTP server listening for incoming HTTP messages on the specified IP, Port, URL etc.
The code block below documents the format for the REST Listener node.
"listener": {
"type":"http_listener",
"isMessageGenerator": true,
"host": "127.0.0.1",
"port":9090,
"url":"/hello",
"allow_origin": "*",
"timeout": 120000
}
Most of the properties are self explanatory. The allow_origin
property allows for CORS controls. Timeout is the http timeout for the server.
The property isMessageGenerator
must be set to true for this node.
The HTTP listener listens for POST messages only currently.
The injected message is not parsed to JSON by this listener, unlike the REST listener which does do so.
(C) 2018 - 2021 TekMonks