httpmock icon indicating copy to clipboard operation
httpmock copied to clipboard

Share variables between requests and responses

Open sr-gi opened this issue 2 years ago • 1 comments

I've noticed something missing that would be, IMHO, pretty useful for testing external clients agains mocked servers.

That's sharing variables between requests and responses. For instance, let's say we have a client posting some JSON data to a server, and the server may reply based on that data. The when clause should be able to expose the request data so the then clase can read it and act accordingly.

sr-gi avatar Sep 17 '21 07:09 sr-gi

Thanks for creating this issue. This is a great idea. I’m happy to accept a PR.

alexliesenfeld avatar Sep 17 '21 09:09 alexliesenfeld

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Apr 18 '23 01:04 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar May 02 '23 01:05 github-actions[bot]