Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for rewriting responses before writing tape #26

Open
rchild-okta opened this issue Oct 27, 2016 · 0 comments
Open

Allow for rewriting responses before writing tape #26

rchild-okta opened this issue Oct 27, 2016 · 0 comments

Comments

@rchild-okta
Copy link

rchild-okta commented Oct 27, 2016

Yakbak is great - it's really easy to setup, and just works. It'd be nice if there was a custom hook to modify the response before writing to the tape - specifically in the case where the response returns references to the proxied server.

For example:

  1. Using yakbak server to proxy through to some other server
  2. Request made, html returned with references to js/css/img assets that point to the original server url
  3. Ideally, I can write a function to replace these references with the yakbak proxy so that they are then captured through yakbak as well.

I submitted a PR with an attempt at this here: #27

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

No branches or pull requests

1 participant