Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mongoose
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ganil-acq
GANILinux
linux-service
library
mongoose
Commits
d86d409d
Commit
d86d409d
authored
11 years ago
by
Sergey Lyubka
Browse files
Options
Downloads
Patches
Plain Diff
Preprocessor definitions prefixed by MONGOOSE_
parent
1109d3aa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/Embed.md
+19
-13
19 additions, 13 deletions
docs/Embed.md
mongoose.c
+86
-86
86 additions, 86 deletions
mongoose.c
unit_test.c
+1
-3
1 addition, 3 deletions
unit_test.c
with
106 additions
and
102 deletions
docs/Embed.md
+
19
−
13
View file @
d86d409d
...
@@ -73,19 +73,25 @@ could be enabled by setting appropriate `USE_*` flag. Bare bones Mongoose
...
@@ -73,19 +73,25 @@ could be enabled by setting appropriate `USE_*` flag. Bare bones Mongoose
is quite small, about 30 kilobytes of compiled x86 code. Each feature adds
is quite small, about 30 kilobytes of compiled x86 code. Each feature adds
a couple of kilobytes to the executable size, and also has some runtime penalty.
a couple of kilobytes to the executable size, and also has some runtime penalty.
-DNO_AUTH Disable MD5 authorization support
-DMONGOOSE_NO_AUTH Disable MD5 authorization support
-DNO_CGI Disable CGI support
-DMONGOOSE_NO_CGI Disable CGI support
-DNO_DAV Disable WebDAV support (PUT, DELETE, MKCOL, PROPFIND)
-DMONGOOSE_NO_DAV Disable WebDAV support
-DNO_DIRECTORY_LISTING Disable directory listing
(PUT, DELETE, MKCOL, PROPFIND methods)
-DNO_LOGGING Disable access/error logging
-DMONGOOSE_NO_DIRECTORY_LISTING Disable directory listing
-DNO_WEBSOCKET Disable WebSocket support
-DMONGOOSE_NO_FILESYSTEM Disables all file IO, serving from memory only
-DMONGOOSE_NO_LOGGING Disable access/error logging
-DUSE_IPV6 Enable IPv6 support
-DMONGOOSE_NO_THREADS
-DUSE_LUA Enable Lua scripting
-DMONGOOSE_NO_WEBSOCKET Disable WebSocket support
-DUSE_LUA_SQLITE3 Enable sqlite3 binding for Lua
-DUSE_SSL Enable SSL
-DMONGOOSE_USE_IDLE_TIMEOUT_SECONDS=X Idle connection timeout, default is 30
-DUSE_POST_SIZE_LIMIT=X POST requests larger than X will be rejected
-DMONGOOSE_USE_IPV6 Enable IPv6 support
-DUSE_EXTRA_HTTP_HEADERS=X Append X to the HTTP headers for static files
-DMONGOOSE_USE_LUA Enable Lua scripting
-DMONGOOSE_USE_LUA_SQLITE3 Enable sqlite3 binding for Lua
-DMONGOOSE_USE_SSL Enable SSL
-DMONGOOSE_USE_POST_SIZE_LIMIT=X POST requests larger than X will be
rejected, not set by default
-DMONGOOSE_USE_EXTRA_HTTP_HEADERS=X Append X to the HTTP headers
for static files, empty by default
Mongoose source code contains a well-commented example code, listed below:
Mongoose source code contains a well-commented example code, listed below:
...
...
This diff is collapsed.
Click to expand it.
mongoose.c
+
86
−
86
View file @
d86d409d
This diff is collapsed.
Click to expand it.
unit_test.c
+
1
−
3
View file @
d86d409d
// Unit test for the mongoose web server.
// Unit test for the mongoose web server.
// g++ -W -Wall -pedantic -g unit_test.c && ./a.out
// g++ -W -Wall -pedantic -g unit_test.c && ./a.out
#define USE_WEBSOCKET
#ifndef _WIN32
#ifndef _WIN32
#define USE_IPV6
#define
MONGOOSE_
USE_IPV6
#endif
#endif
// USE_* definitions must be made before #include "mongoose.c" !
// USE_* definitions must be made before #include "mongoose.c" !
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment