hjr3 / weldr

A HTTP 1.1 proxy written in Rust using tokio.
Apache License 2.0
217 stars 20 forks source link

support chunked response body, like server send event #42

Closed yanns closed 7 years ago

hjr3 commented 7 years ago

I am working on this too! I think we need some more parsing for a chunked response. I will review this more and show you what I have so far as well.

yanns commented 7 years ago

;)

With this, the SSE from my play app are working.

hjr3 commented 7 years ago

Is SSE different from Transfer-Encoding: chunked?

yanns commented 7 years ago

not really, but it was good to see a long-living connection sending lots of events working through the proxy ;)

hjr3 commented 7 years ago

I am going to merge this. I have the chunk-aware decoder ready to go. I can add it to this should it be necessary.