Skip to main content

HTTPListener

Reference

Parameters​

handler​

Actions that are executed by the listener. The following parameters are accessible by using Reference: body, headers, query and method.

Component data2-core-flow@Series

enableExecutionLogs​

Controls whether the listener will save execution logs.

Component data2-core-primitives@Boolean

shouldLogRequestBody​

Controls whether the body will be recorded.

Component data2-core-primitives@Boolean

shouldLogRequestHeaders​

Controls whether the request headers will be recorded.

Component data2-core-primitives@Boolean

omitHeaders
list
​

Headers to be omitted from the request when logging. The headers are all lower case

Component data2-core-primitives@String

omitBodyKeys
list
​

Keys to be omitted from the request body when logging.

Component data2-core-primitives@String

policies
list
​

Component data2-core-auth@Policy

rawResponse​

Raw Response HTTP Listeners expects an object with the keys content and headers at the end of the handler.

{
"content" : "xxx",
"headers": {
"Content-Type":"application/json"
}
}

Component data2-core-primitives@Boolean

Interactions​

invoke​

Invokes remote listener

Arguments​

  1. params data2-core-primitives@Object
  • body: data2-core-primitives@Object
    • headers: data2-core-primitives@Object