Open edorivai opened 7 years ago
Please get this merged or publish the fork on NPM. <3
Can we get this merged?
Since @popomore has apparently abandoned koa-proxy, could you see if npm would transfer the package name to you for you to take the project over?
I think it would be much appreciated!
@chrisveness I've emailed @popomore, and CC'd npm support. On their disputes page, npm indicates it may take a couple of weeks, so stay tuned!
First attempt to upgrading to Koa 2.
Solves #37
Summary
Problems
I have all test passing, except the
encoding
test. The problem with this test is that if you want to decode the response body, you'll have to wait for the entire stream to finish. I'm not sure whether decoding the response body should really part of this library. One could simply decode in an upstream middleware if they want, right?So I have commented out the decoding, and switched the test to pending. Please let me know if you want to keep support for decoding, we can discuss options.
Version
I guess this would be a major version bump, since it will require Koa 2.