smol_http

A simple http server supporting GET requests. Written in less than 400 lines of C.
Log | Files | Refs | README | LICENSE

config.def.h (355B)


      1 // Should xxx.html not exist these will be supplied instead.
      2 #define DEFAULT_404_SITE "404 - Not Found\0"
      3 #define DEFAULT_400_SITE "400 - Bad Request\0"
      4 
      5 // Default port should -p not be supplied.
      6 #define DEFAULT_PORT 1337
      7 
      8 // Default directory should -d not be supplied.
      9 #define WEBSITE_ROOT "./site/"
     10 
     11 #define TIMEOUT_SECOND 3
     12 #define TIMEOUT_USECOND 0