Skip to content

[Feature Request] Adding additional headers to outgoing webhook #47

@oh-bala

Description

@oh-bala

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',
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions