Clean up & document HttpResponse.h

This commit is contained in:
Alex Hultman
2018-09-11 20:04:52 +02:00
parent 3af62041a1
commit 7529ba1dd1
5 changed files with 15 additions and 19 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ int main(int argc, char **argv) {
});*/
res->writeStatus(uWS::HTTP_200_OK)->write([](int offset) {
return std::string_view("Hello world!");
return std::string_view("Hello world!").substr(offset);
}, 12);
});