From cb62203cf3dac0be1744fe5de03cca95f225f5c7 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Thu, 25 Oct 2012 21:47:04 +0100 Subject: [PATCH] More documentation for MG_OPEN_FILE event --- mongoose.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mongoose.h b/mongoose.h index 5cfcc675..81039109 100644 --- a/mongoose.h +++ b/mongoose.h @@ -116,6 +116,11 @@ enum mg_event { // return "data"; // } // return NULL; + // + // Note that this even is sent multiple times during one request. Each + // time mongoose tries to open or stat the file, this event is sent, e.g. + // for opening .htpasswd file, stat-ting requested file, opening requested + // file, etc. MG_OPEN_FILE, // Mongoose initializes Lua server page. Sent only if Lua support is enabled.