cesanta/fossa

Make Fossa a superset of Mongoose

cpq opened this issue · 1 comments

cpq commented

Move missing HTTP functionality from Mongoose to Fossa.
Then make Mongoose a unifdef-generated from fossa.

Functionality to move:

  • Directory listing
  • IP based ACL
  • SSI
  • CGI
  • DAV
  • Range header (resumed download)
  • URL rewrites
  • Auto-generate mongoose/mongoose.с
  • Merge mongoose examples to Fossa
cpq commented

Max, please take this over.

What we need to do:

  • Add fossa/src/mongoose_compat.c which is an adapter layer for mongoose api
  • All code in fossa/src/mongoose_compat.c wrap in #ifdef NS_ENABLE_MONGOOSE_API
  • Write an adapter layer that implements mongoose api (mongoose/mongoose.h)
  • Add a target to fossa/Makefile to generate mongoose.c using unifdef utility