japronto icon indicating copy to clipboard operation
japronto copied to clipboard

How to make receiving body in request awaitable?

Open IterableTrucks opened this issue 6 years ago • 1 comments

Is it possible to make request.body an asynchronous function so that we can use something like "text=await request.text()" in the handler?

IterableTrucks avatar Jul 07 '19 11:07 IterableTrucks

This is not something that Japronto was made for and I purposefully skipped it. Japronto is made for fast turn over small request small response usage scenario.

If you need to wait for your body to arrive due to slow network and client you are better off with general frameworks because latencies and wait times would totally kill speed benefits.

squeaky-pl avatar Jul 16 '19 04:07 squeaky-pl