Should http server read request body before sendin

2019-08-11 00:41发布

问题:

Is there any rule for http server implementation to read or skip the request body before sending a response?

回答1:

Once you have received the full HTTP request you are free to do with it whatever you want to do with it. If you don't care about the body you can simply read it and discard it. You should empty the read buffer obviously.



标签: http