mirror of
https://github.com/adnanh/webhook.git
synced 2025-06-01 02:02:28 +00:00
Add per-hook HTTP method restrictions
This commit is contained in:
parent
66562fdb41
commit
3414f34025
6 changed files with 217 additions and 184 deletions
|
@ -460,6 +460,7 @@ type Hook struct {
|
|||
TriggerRuleMismatchHttpResponseCode int `json:"trigger-rule-mismatch-http-response-code,omitempty"`
|
||||
IncomingPayloadContentType string `json:"incoming-payload-content-type,omitempty"`
|
||||
SuccessHttpResponseCode int `json:"success-http-response-code,omitempty"`
|
||||
HTTPMethods []string `json:"http-methods"`
|
||||
}
|
||||
|
||||
// ParseJSONParameters decodes specified arguments to JSON objects and replaces the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue