5 out->getHTTPResponseHeader().addHeader(
"Content-Type",
"text/html");
6 out->getHTTPResponseHeader().addHeader(
"Expires",
"0");
7 out->getHTTPResponseHeader().addHeader(
"Cache-Control",
"no-store, no-cache, must-revalidate, max-age=0");
8 out->getHTTPResponseHeader().addHeader(
"Cache-Control",
"post-check=0, pre-check=0");
9 out->getHTTPResponseHeader().addHeader(
"Pragma",
"no-cache");
11 *
out << cgicc::HTMLDoctype(cgicc::HTMLDoctype::eStrict) << std::endl;
14 *
out <<
cgicc::html().set(
"lang",
"en").set(
"dir",
"ltr") << std::endl;
19 std::string js_file_url =
contextURL +
"/temporary/WebLib.js";
20 std::string css_file_url =
contextURL +
"/temporary/style.css";
22 *
out << cgicc::head() << std::endl;
24 *
out << cgicc::script().set(
"src", js_file_url.c_str()) << cgicc::script() << std::endl;
26 *
out <<
cgicc::link().set(
"type",
"text/css").set(
"href", css_file_url.c_str()).
set(
"rel",
"stylesheet") << std::endl;
28 *
out << cgicc::meta().set(
"http-equiv",
"pragma").set(
"content",
"no-cache") << std::endl;
30 *
out << cgicc::head() << std::endl;
35 *
out <<
"</html>" << std::endl;
std::string link(std::string &nm, std::string &ns)
void set(const std::string &name, int value)
set the flag, with a run-time name