popomore / koa-proxy

Proxy middleware for koa
223 stars 102 forks source link

Add an option yield_next to yield next so the proxied response can be… #16

Closed bbarrows closed 7 years ago

bbarrows commented 9 years ago

… modified

So I need koa proxy to yield to the next 'downstream' middleware in my project so I can modify the response. I am mocking some data and am using this to proxy all requests to the API server and then modifying the responses for specific API calls.

This way I can mock out the parts of the API we need mocked/modified and not have to implement the entire API.

What do you think about adding this option? Thank you! Brad Barrows

popomore commented 9 years ago

Coverage is decreased, Can you add a testcase for this?

popomore commented 7 years ago

47 has been merged