Added new response creation interface

This commit is contained in:
Sergey Lyubka committed 2014-01-04 11:31:55 +00:00
1 parent 3a5e2fba88
commit d0e2741832
5 files changed
+127 -48

No files matched your search

+3 -3
View File
@@ -4,9 +4,9 @@
// This function will be called by mongoose on every new request
static int index_html(struct mg_connection *conn) {
mg_printf(conn, "HTTP/1.0 200 OK\r\n\r\n"
"Hello! Requested URI is [%s], query string is [%s]", conn->uri,
conn->query_string == NULL ? "(none)" : conn->query_string);
mg_printf_data(conn, "Hello! Requested URI is [%s], query string is [%s]",
conn->uri,
conn->query_string == NULL ? "(none)" : conn->query_string);
return 0;
}