Skip to content

Commit

Permalink
docs: edit ops, added encode info
Browse files Browse the repository at this point in the history
  • Loading branch information
mattebit committed Dec 15, 2023
1 parent e358c03 commit 88ad2d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/language.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ By using an Edit Operation inside an Operation, you are able to edit the interce
- `edit` to edit the value of the given parameter. (only for url and head sections) use `value` to specify the new value.
- `edit regex` to edit with a regex the section of the message you selected. use `value` to specify the new value
- `add` to add some content to the given section. in case of url and head, you need to specify the name of the parameter in this tag, and the value with `value`. If the parameter is not found, a new parameter is added, if the parameter is already present, the new value will be appended to the old one. For the body section, the content will be always appended to the end of the body, so you can leave this tag value empty and put the content to append in the `value` tag.
- `encode` used to encode the given content. The value should be what to decode, for urll and head is a parameter and for body is a regex.
- `encodings` when you use `encode` you should provide a list of encodings to be used to encode the selected value. The supported encodings are the same for the decode operation, and can be found [here](#decode-operation)
- `remove` used to specify the name of a parameter to remove in url and head. Not available on body.
- `value` used to specify the new value for the edit operations
- `use` used in place of `value` to use the given variable value as new value. You should give a variable name to this tag.
Expand Down

0 comments on commit 88ad2d8

Please sign in to comment.