feat: add new hook option keep-file-environment

This commit is contained in:
jason.liao 2023-07-25 13:58:53 +08:00
parent f187592147
commit fe539f46b5
3 changed files with 49 additions and 0 deletions

View file

@ -581,6 +581,7 @@ type Hook struct {
IncomingPayloadContentType string `json:"incoming-payload-content-type,omitempty"`
SuccessHttpResponseCode int `json:"success-http-response-code,omitempty"`
HTTPMethods []string `json:"http-methods"`
KeepFileEnvironment bool `json:"keep-file-environment,omitempty"`
}
// ParseJSONParameters decodes specified arguments to JSON objects and replaces the