Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
Signed-off-by: revolyssup <ashishjaitiwari15112000@gmail.com>
  • Loading branch information
Revolyssup committed Jun 15, 2023
1 parent f796a56 commit ce809e5
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/en/latest/concepts/annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,30 @@ This annotation configures the new body in the response.
k8s.apisix.apache.org/response-rewrite-body: "bar-body"
```

### Add header

This annotation configures to append the new headers in the response.

```yaml
k8s.apisix.apache.org/response-rewrite-add-header: "testkey1:testval1,testkey2:testval2"
```

### Set header

This annotation configures to rewrite the new headers in the response.

```yaml
k8s.apisix.apache.org/response-rewrite-set-header: "testkey1:testval1,testkey2:testval2"
```

### Remove header

This annotation configures to remove headers in the response.

```yaml
k8s.apisix.apache.org/response-rewrite-remove-header: "testkey1,testkey2"
```

### Body Base64

When set, the body of the request will be decoded before writing to the client.
Expand Down

0 comments on commit ce809e5

Please sign in to comment.