mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-28 20:58:31 +00:00
Refactor mg_url_encode
This commit is contained in:
1 parent
7ce5009de1
commit
602c5c0866
7 files changed
+79
-83
No files matched your search
+1
-11
@@ -568,17 +568,6 @@ void mg_hmac_sha1(const unsigned char *key, size_t key_len,
|
||||
struct mg_connection;
|
||||
typedef void (*mg_event_handler_t)(struct mg_connection *, int ev,
|
||||
void *ev_data, void *fn_data);
|
||||
#if 0
|
||||
struct mg_fn {
|
||||
struct mg_fn *next;
|
||||
mg_event_handler_t fn;
|
||||
void *fn_data;
|
||||
};
|
||||
|
||||
void mg_fn_add(struct mg_connection *c, mg_event_handler_t fn, void *fn_data);
|
||||
void mg_fn_del(struct mg_connection *c, mg_event_handler_t fn);
|
||||
#endif
|
||||
|
||||
void mg_call(struct mg_connection *c, int ev, void *ev_data);
|
||||
void mg_error(struct mg_connection *c, const char *fmt, ...);
|
||||
|
||||
@@ -722,6 +711,7 @@ 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);
|
||||
int mg_url_decode(const char *s, size_t n, char *to, size_t to_len, int form);
|
||||
int mg_url_encode(const char *s, size_t n, char *buf, size_t len);
|
||||
void mg_http_creds(struct mg_http_message *, char *user, int, char *pass, int);
|
||||
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,
|
||||
|
||||
Reference in new issue
Block a user