captainhook
captainhook copied to clipboard
[Feature Request] Adding additional headers to outgoing webhook
So far looks like request post to webhook receiver is anonymous. Can this be a configuration of adding more header options?
For example: create a captain_hook.request_header callable (like $transformer
), then we can use the $webhook
object and original $header
option, such as
// @file config/config.php
'request_header' => function ($webhook, $header = []) {
return [
'X-Hub-Signature' => 'sha1=xxxxxxxxxxxxxxxxxxxxx',
]
}