dougmoscrop / serverless-http

Use your existing middleware framework (e.g. Express, Koa) in AWS Lambda 🎉
Other
1.71k stars 164 forks source link

Add chunked encoding support #207

Closed anthony-ism closed 2 years ago

anthony-ism commented 3 years ago

Didn't dig too deep on how the response.body gets hydrated -- assuming that the whole body is there, just hasn't been parsed correctly.

Read a little about the transfer-chunk encoding and wrote some logic to parse it.

Read https://github.com/dougmoscrop/serverless-http/issues/142

and decided to see if the lib itself could handler this portion of the logic.

Let me know what you think.

rafadesu commented 2 years ago

I've tested this and works great. When is this going to be merged in master?