Closed hjr3 closed 7 years ago
I am almost done with converting the tests. The hyper client body response is itself a future (stream), which means I have to do some work to collect it all and present it back as a normal String so tests can sanely assert against it. I also want @yanns to take a look at my new test harness. I don't love it, but I am not sure I can do better.
The good news is that I have fixed a number of outstanding issues as part of this conversion. This could bring us much closer to a 0.1 release.
The tests look good! When I tested the Server-Send-Events, it works. But it is much slower than the implementation without hyper. I guess that hyper makes a response for each event instead of letting them grouped.
@yanns thanks for the review. I was able to get the tests back into almost the exact same form. With regards to performance, I have a few thoughts:
I created https://github.com/hjr3/alacrity/issues/54 so we can add some benchmarks and keep better track of this too.
There will still need to be some gateway specific HTTP logic. The linking of the frontend to the backend is very basic at the moment.
Using hyper also fixed some issues:
Fixes #11 Fixes #12
To do: