Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make receiving body in request awaitable? #161

Open
IterableTrucks opened this issue Jul 7, 2019 · 1 comment
Open

How to make receiving body in request awaitable? #161

IterableTrucks opened this issue Jul 7, 2019 · 1 comment

Comments

@IterableTrucks
Copy link

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

@squeaky-pl
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants