Skip to content

docs: add re case on response-rewrite plugin#7197

Merged
spacewander merged 1 commit into
apache:masterfrom
qizhendong1:debug-conf-check
Jun 10, 2022
Merged

docs: add re case on response-rewrite plugin#7197
spacewander merged 1 commit into
apache:masterfrom
qizhendong1:debug-conf-check

Conversation

@qizhendong1

@qizhendong1 qizhendong1 commented Jun 6, 2022

Copy link
Copy Markdown
Contributor

Description

Fixes # (issue) #7130

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@qizhendong1
qizhendong1 marked this pull request as ready for review June 6, 2022 07:47
Comment thread docs/en/latest/plugins/response-rewrite.md Outdated
soulbird
soulbird previously approved these changes Jun 7, 2022

@juzhiyuan juzhiyuan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also cc @bzp2010 to have a review

Comment thread docs/en/latest/plugins/response-rewrite.md Outdated
Comment thread docs/en/latest/plugins/response-rewrite.md Outdated
{"code":"ok","message":"new json body"}
```

Replace the string X-Amzn-Trace-Id of body to X-Amzn-Trace-Id-Replace.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, the changes you added are more like a scenario section (not related to the Enabling section), please see https://github.com/apache/apisix/blob/a729489152a032571b9bcd9b19edc75949755fbe/docs/en/latest/plugins/response-rewrite.md

image

cc @navendu-pottekkat should we accept this? If yes, then what titles should we use?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be added as an example. But it is not clear to me that we are replacing the header using regex.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I add description let it clear.

@qizhendong1
qizhendong1 force-pushed the debug-conf-check branch 2 times, most recently from bd52bd5 to d372482 Compare June 7, 2022 07:11
Comment thread docs/en/latest/plugins/response-rewrite.md Outdated
Comment thread docs/en/latest/plugins/response-rewrite.md

@juzhiyuan juzhiyuan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could think about adding a separate section like Examples in the future 😉

@juzhiyuan
juzhiyuan requested a review from tao12345666333 June 9, 2022 09:02
@spacewander
spacewander merged commit e5f7cec into apache:master Jun 10, 2022
hongbinhsu pushed a commit to fitphp/apix that referenced this pull request Jun 16, 2022
* upstream/master: (46 commits)
  docs: fix err in batch-processor (apache#7259)
  docs(deployment): sync design to online docs (apache#7256)
  feat(deployment): add structure of traditional role (apache#7249)
  fix(benchmark): write worker_processes into config.yaml (apache#7250)
  docs: correct the repo url (apache#7253)
  feat: Add support for capturing OIDC refresh tokens (apache#7220)
  feat(ssl): support get upstream cert from ssl object (apache#7221)
  chore: validate etcd conf strictly (apache#7245)
  fix(api-response): check response header format (apache#7238)
  fix: duplicate X-Forwarded-Proto will be sent as string (apache#7229)
  fix: distinguish different upstreams even they have the same addr (apache#7213)
  docs: make company on README more preciser (apache#7230)
  test: remove unused required etcd (apache#7225)
  fix: add debug yaml validation (apache#7201)
  change: remove upstream.enable_websocket which is deprecated since 2020 (apache#7222)
  docs: add re case on response-rewrite plugin (apache#7197)
  docs: add API Gateway keyword and AWS graviton3. (apache#7217)
  fix(response-rewrite): schema format error (apache#7212)
  docs(proxy-rewrite): remove empty space (apache#7210)
  chore: require http_stub_status_module exists (apache#7208)
  ...
Liu-Junlin pushed a commit to Liu-Junlin/apisix that referenced this pull request Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants