mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-28 12:30:58 +00:00
Publish mongoose src and tests
CL: Mongoose Web Server: Publish sources and tests Resolves https://github.com/cesanta/mongoose/issues/745 PUBLISHED_FROM=7ecd7a3c518cfa614a6ba0838678dcb91b75a8c0
This commit is contained in:
1 parent
0ab1c7ef76
commit
8742fac5d8
94 files changed
+24967
No files matched your search
@@ -0,0 +1,12 @@
|
||||
Http = {
|
||||
onrcv: function(c, req) {
|
||||
if (req.uri === '/data/js') {
|
||||
// Send reply. We need to construct everything, headers and body
|
||||
mg_send(c, 'HTTP/1.0 200 OK\r\n\r\n');
|
||||
mg_send(c, JSON.stringify(req));
|
||||
|
||||
// Let Mongoose know we've handled the connection
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user