Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Button handy
blanktrue
color#0052CC
nameSend Feedback
linkhttps://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=addWebhookResponseHeader+-+434472844
widthauto

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

We've encountered an issue exporting this macro. Please try exporting this page again later.