qihaiyan commented on code in PR #6949:
URL: https://github.com/apache/apisix/pull/6949#discussion_r867427163
##########
apisix/plugins/api-breaker.lua:
##########
@@ -35,6 +35,13 @@ local schema = {
minimum = 200,
maximum = 599,
},
+ break_response_body = {
+ type = "string"
+ },
+ break_response_content_type = {
Review Comment:
> As for this plugin, I would suggest adding a field to add any response
headers instead of just content-type.
Can we use the ```headers``` field to represent any response headers? I
found the ```echo``` plugin and also the ```response-rewrite``` plugin using
this attribute. @spacewander
Name | Type | Requirement | Default | Valid | Description
-- | -- | -- | -- | -- | --
headers | object | optional | | | New headers for response
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]