Add struct mg_http_serve_opts::extra_headers

This commit is contained in:
cpq committed 2021-03-10 07:56:14 +00:00
1 parent f326cbedbe
commit 6366c832b0
7 files changed
+29 -20

No files matched your search

+3 -2
View File
@@ -686,8 +686,9 @@ Write a chunk of data in chunked encoding format.
```c
struct mg_http_serve_opts {
const char *root_dir; // Web root directory, must be non-NULL
const char *ssi_pattern; // SSI filename pattern, e.g. #.shtml
const char *root_dir; // Web root directory, must be non-NULL
const char *ssi_pattern; // SSI filename pattern, e.g. #.shtml
const char *extra_headers; // Extra HTTP headers to add in responses
};
void mg_http_serve_dir(struct mg_connection *, struct mg_http_message *hm,
const struct mg_http_serve_opts *opts);