From fec6009edb1b309307c20134ebecf266e6401aeb Mon Sep 17 00:00:00 2001 From: Sergey Lyubka <valenok@gmail.com> Date: Tue, 3 Jun 2014 18:49:17 +0100 Subject: [PATCH] mg_send_file() doc changed --- docs/API.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/API.md b/docs/API.md index 125bd16b7..646c86db6 100644 --- a/docs/API.md +++ b/docs/API.md @@ -171,16 +171,16 @@ a response body. Mongoose provides functions for all three parts: Mongoose will call a handler repeatedly after each socket write. void mg_send_file(struct mg_connection *, const char *path); + +<!-- --> -Signals Mongoose to serve given file. Mongoose handles file according to +Tells Mongoose to serve given file. Mongoose handles file according to it's extensions, i.e. Mongoose will invoke CGI script if `path` has CGI extension, it'll render SSI file if `path` has SSI extension, etc. If `path` points to a directory, Mongoose will show directory listing. If this function is used, no calls to `mg_send*` or `mg_printf*` functions must be made, and event handler must return `MG_MORE`. -<!-- --> - int mg_websocket_write(struct mg_connection* conn, int opcode, const char *data, size_t data_len); -- GitLab