updated comments

This commit is contained in:
eidheim 2014-07-05 13:15:28 +02:00
commit 7fc1b1bf20

View file

@ -51,6 +51,7 @@ int main() {
};
//GET-example for the path /match/[number], responds with the matched string in path (number)
//For instance a request GET /match/123 will receive: 123
httpserver.resources["^/match/([0-9]*)/?$"]["^GET$"]=[](ostream& response, const Request& request, const smatch& path_match) {
string number=path_match[1];
response << "HTTP/1.1 200 OK\r\nContent-Length: " << number.length() << "\r\n\r\n" << number;