mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-24 11:54:49 +00:00
Ready to release
This commit is contained in:
1 parent
292c66e25c
commit
4236405b90
4 files changed
+5
-5
No files matched your search
+2
-2
@@ -3821,7 +3821,7 @@ isn't default port for URL protocol
|
||||
Usage example:
|
||||
|
||||
```c
|
||||
unsigned short port1 = mg_url_port("htts://myhost.com") // port1 is now 443 (default https port)
|
||||
unsigned short port1 = mg_url_port("https://myhost.com") // port1 is now 443 (default https port)
|
||||
unsigned short port2 = mg_url_port("127.0.0.1:567") // port2 is now 567
|
||||
```
|
||||
|
||||
@@ -3961,7 +3961,7 @@ Parameters:
|
||||
- `0` - Disable logging
|
||||
- `1` - Log errors only
|
||||
- `2` - Log errors and info messages
|
||||
- `3` - Log errors, into and debug messages
|
||||
- `3` - Log errors, info and debug messages
|
||||
- `4` - Log everything
|
||||
|
||||
Return value: None
|
||||
|
||||
@@ -10,7 +10,7 @@ static const char *s_web_root = ".";
|
||||
|
||||
// This RESTful server implements the following endpoints:
|
||||
// /websocket - upgrade to Websocket, and implement websocket echo server
|
||||
// /api/rest - respond with JSON string {"result": 123}
|
||||
// /rest - respond with JSON string {"result": 123}
|
||||
// any other URI serves static files from s_web_root
|
||||
static void fn(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
|
||||
if (ev == MG_EV_OPEN) {
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@
|
||||
#ifndef MONGOOSE_H
|
||||
#define MONGOOSE_H
|
||||
|
||||
#define MG_VERSION "7.8"
|
||||
#define MG_VERSION "7.9"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
#define MG_VERSION "7.8"
|
||||
#define MG_VERSION "7.9"
|
||||
Reference in new issue
Block a user