Skip to content

Request Body Data #142

Answered by cirospaciari
SepehrBazyar asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @cirospaciari
First of all, thank you for this wonderful project.

My question is that the data sent in the request body can be accessed by the res.get_json() instead of being read from req.get_json()?
Please explain the reason for this implementation? Thanks

The reason is the uWebSockets C++ interface does the same, probably will change that in future because it is not very intuitive

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SepehrBazyar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants