Skip to main content

Response payload

In the response payload editor you can either:

  1. Specify the mock response to change the response data.
  2. Forward the original response (only available on paid plans). Upon selecting a modify rule, if you empty the editor, tweak will forward the original HTTP response tot he application. This can be useful if you want to modify only HTTP headers or manipulate the original response data with custom JavaScript.
caution

To forward the original HTTP response, the editor must be totally empty (no white spaces).

Additional features

  1. To test your application you can send invalid response payloads (e.g. white spaces, malformed JSON etc.). This feature was introduced in tweak v1.1.0.
  2. You can reference variables and use data generators in this editor.


Was this page helpful?