Improve documentation for http::message::prepare_payload()

Fixes #603
This commit is contained in:
Mohammad Nejati
2024-01-06 09:11:10 +03:30
committed by Mohammad Nejati
parent 2216adc013
commit d3afd7fad6
+8
View File
@@ -852,6 +852,14 @@ public:
req.body() = "Hello, world!";
req.prepare_payload();
@endcode
@note This function is not necessary to call in
the following situations:
@li The request doesn't contain a body, such as
in a GET or HEAD request.
@li The Content-Length and Transfer-Encoding are set manually.
*/
void
prepare_payload()