Add extra param to http_reply()

This commit is contained in:
cpq
2020-12-17 22:47:55 +00:00
parent 29d31ba919
commit 82a378e519
9 changed files with 47 additions and 40 deletions
+2 -1
View File
@@ -32,7 +32,8 @@ void mg_http_serve_dir(struct mg_connection *, struct mg_http_message *hm,
const char *path);
void mg_http_serve_file(struct mg_connection *, struct mg_http_message *,
const char *, const char *mime);
void mg_http_reply(struct mg_connection *c, int code, const char *fmt, ...);
void mg_http_reply(struct mg_connection *, int status_code, const char *headers,
const char *body_fmt, ...);
struct mg_str *mg_http_get_header(struct mg_http_message *, const char *name);
void mg_http_event_handler(struct mg_connection *c, int ev);
int mg_http_get_var(const struct mg_str *, const char *name, char *, int);