mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-06 15:51:25 +00:00
Added new response creation interface
This commit is contained in:
1 parent
3a5e2fba88
commit
d0e2741832
5 files changed
+127
-48
No files matched your search
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user