Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

addWebhookResponseHeader(httpHeader)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Adds an HTTP header to the response that will be returned to the Webhook caller.

Adds an HTTP header to the response that will be returned to the Webhook caller.

...

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

httpHeader

HttpHeader

Yes

The header to be added to the response

Return Type

None

Example

Code Block
languagejs
....
// webhook logic
....
//setting a custom HTTP header to the webhook response:
HttpHeader header = httpCreateHeader("Content-Type", "application/javascript");
addWebhookResponseHeader(header);

//returning success
return true, 200;

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "webhook_routine" and space = currentSpace ( )
labelsarray_routines