Add mg_http_next_multipart()

This commit is contained in:
cpq committed 2021-03-17 07:43:29 +00:00
1 parent bc00d5159a
commit 5bd22cb5e4
6 files changed
+211 -35

No files matched your search

+3 -2
View File
@@ -32,7 +32,7 @@ struct mg_http_serve_opts {
struct mg_http_part {
struct mg_str name; // Form field name
struct mg_str filename; // Filename for file uploads
struct mg_str part; // Part contents
struct mg_str body; // Part contents
};
int mg_http_parse(const char *s, size_t len, struct mg_http_message *);
@@ -60,4 +60,5 @@ bool mg_http_match_uri(const struct mg_http_message *, const char *glob);
int mg_http_upload(struct mg_connection *, struct mg_http_message *hm,
const char *dir);
void mg_http_bauth(struct mg_connection *, const char *user, const char *pass);
int mg_http_next_multipart(struct mg_str, int, struct mg_http_part *);
struct mg_str mg_http_get_header_var(struct mg_str s, struct mg_str v);
size_t mg_http_next_multipart(struct mg_str, size_t, struct mg_http_part *);