Embedded Web Server
Go to file
Andrea Guzzo 45f6612096 allow to define a default mime-type to use when lookup in the internal table fails
instead of always returning 'text/plain'

To allow setting a different default mime-type the mg_get_mime_type() api has been
extended to require an mg_server parameter.

Note that using a static global as default mime type wouldn't have allowed us to
control it via a configuration option because there is not global initialization phase
and configuration options are provided (and specific) to each server instance.
This means that different servers can be configured to use a different default mime-type
(which is also a desired behaviour in many scenarios) when lookup fails.
2014-01-24 14:45:19 +01:00
docs more examples added 2014-01-20 11:21:35 +00:00
examples Not exiting on a wrong option, best effort to recover 2014-01-23 20:57:27 +00:00
LICENSE Formatted hyperlinks 2013-11-25 13:45:48 +00:00
mongoose.c allow to define a default mime-type to use when lookup in the internal table fails 2014-01-24 14:45:19 +01:00
mongoose.h allow to define a default mime-type to use when lookup in the internal table fails 2014-01-24 14:45:19 +01:00
README.md Fixed spelling in readme 2014-01-05 00:01:31 +00:00
unit_test.c Not exiting on a wrong option, best effort to recover 2014-01-23 20:57:27 +00:00

Mongoose Web Server

Mongoose is easy to use, powerful, embeddable web server.

Features

  • Works on Windows, Mac, UNIX/Linux, iPhone, Android, and many other platforms
  • CGI, SSL, Digest auth, Websocket, WEbDAV, Resumed download, URL rewrite, file blacklist, IP-based ACL, Windows service
  • Scripting and database support (Lua + Sqlite, see page.lp ), which provides ready to go, powerful web development platform in one single-click executable with no dependencies
  • Simple and clean embedding API. The source is in single mongoose.c file to make embedding easy
  • Extremely lightweight, has a core of under 40kB and tiny runtime footprint
  • Asyncronouns, non-blocking core supporting single- or multi-threaded usage
  • On the market since 2004, stable, mature and tested, has several man-years invested in continuous improvement and refinement
  • Professional support and consultancy available from Cesanta Software, developer of Mongoose

Acknowledgements

Mongoose made better thanks to the contribution of following people:

Arnout Vandecappelle, Benoît Amiaux, Boris Pek, Cody Hanson, Colin Leitner, Daniel Oaks, Eric Bakan, Erik Oomen, Filipp Kovalev, Ger Hobbelt, Hendrik Polczynski, Igor Okulist, Jay, Joe Mucchiello, John Safranek, José Miguel Gonçalves, Shueng Chuan, Katerina Blinova, Konstantin Sorokin, Marin Atanasov, Matt Healy, Mitch Hendrickson, Nigel Stewart, Pavel Khlebovich, Sebastian Reinhard, Stefan Doehla, abadc0de, nullable.type, T.Barmann, D.Hughes, J.C.Sloan, R.Romeo, L.E.Spencer, S.Kotay, R.M.Shorter, W.Mar, J.Wilander, Santa from Memphis, S.Davies, C.Beck, O.M.Vilhunen, C.Radik, G.Woodcock, M.Szczepkowski, Eternal Lands Dev Team, T.Tollet, C.Tangerino, G.Karsai, A.Bourgett, C.Blakemore, D.Fonaryov, T.Andrle, O.IJsselmuiden, R.Womack, M.Tomlinson, A.Slåttå, L.Farrell, J.D.P.Ballestero, V.Albaev, B.Harker, T.Scheffel, H.Klein, R.Merit, T.Bennett, H.Solis, A.Zincenko, M.S., S.Krul, K.Cooke, S.McCallum, F.Morenius, and 10 others.

Licensing

Mongoose is released under GNU GPL v.2. Businesses have an option to get non-restrictive, royalty-free commercial license and professional support from Cesanta Software.

Frozen JSON parser, Super Light Regular Expression library, Super Light DNS Resolver are other projects by Cesanta Software, developed with the same philosophy of functionality and simplicity.