Commit fec6009e authored by Sergey Lyubka's avatar Sergey Lyubka

mg_send_file() doc changed

parent c4f172a1
...@@ -172,15 +172,15 @@ a response body. Mongoose provides functions for all three parts: ...@@ -172,15 +172,15 @@ a response body. Mongoose provides functions for all three parts:
void mg_send_file(struct mg_connection *, const char *path); 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 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` 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 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 is used, no calls to `mg_send*` or `mg_printf*` functions must be made, and
event handler must return `MG_MORE`. event handler must return `MG_MORE`.
<!-- -->
int mg_websocket_write(struct mg_connection* conn, int opcode, int mg_websocket_write(struct mg_connection* conn, int opcode,
const char *data, size_t data_len); const char *data, size_t data_len);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment