mirror of
https://github.com/adnanh/webhook.git
synced 2025-07-02 17:28:31 +00:00
Add request source
Add "request" source with support for "method" and "remote-addr" parameters. Both values are taken from the raw http.Request object. Fixes #312
This commit is contained in:
parent
e513eb4bf4
commit
346c761ef6
6 changed files with 136 additions and 28 deletions
|
@ -152,6 +152,15 @@
|
|||
include-command-output-in-response: true
|
||||
include-command-output-in-response-on-error: true
|
||||
|
||||
- id: request-source
|
||||
pass-arguments-to-command:
|
||||
- source: request
|
||||
name: method
|
||||
- source: request
|
||||
name: remote-addr
|
||||
execute-command: '{{ .Hookecho }}'
|
||||
include-command-output-in-response: true
|
||||
|
||||
- id: static-params-ok
|
||||
execute-command: '{{ .Hookecho }}'
|
||||
include-command-output-in-response: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue