Home | Libraries | People | FAQ | More |
Prepare the message payload fields for the body.
void prepare_payload();
This function will adjust the Content-Length and Transfer-Encoding field values based on the properties of the body.
request<string_body> req{verb::post, "/"}; req.set(field::user_agent, "Beast"); req.body() = "Hello, world!"; req.prepare_payload();