File: putvalue.ecpp

package info (click to toggle)
tntnet 3.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,488 kB
  • sloc: cpp: 16,636; javascript: 8,109; ansic: 2,189; makefile: 861; sh: 317; xml: 258; perl: 159; sql: 14
file content (12 lines) | stat: -rw-r--r-- 198 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
<%include>global.ecpp</%include>
<%cpp>

std::string key = request.getArg("key");

std::string body = request.getBody();

log_info("key: " << key << " value: " << body);

data[key] = body;

</%cpp>