beast icon indicating copy to clipboard operation
beast copied to clipboard

message::base() needs better docs

Open vinniefalco opened this issue 8 years ago • 2 comments

There should be an example of use:

request<string_body> req;
...
std::cout << req.base(); // print just the header portion

Also we should group the overloads with defgroup or something so they don't require the overload page.

vinniefalco avatar Jul 08 '17 00:07 vinniefalco

As per our conversation on slack. It would also be great to show an example of req[http::fields::*] as well.

jaredwy avatar Jul 08 '17 00:07 jaredwy

That could go in the description for message but keep in mind, that syntax only works when you are using basic_fields (the default Fields type).

vinniefalco avatar Jul 08 '17 00:07 vinniefalco