21 #ifndef MONGOOSE_HEADER_INCLUDED 22 #define MONGOOSE_HEADER_INCLUDED 79 typedef void * (*mg_callback_t)(
enum mg_event event,
110 const char **options);
151 const char *password);
198 int mg_get_var(
const char *data,
size_t data_len,
199 const char *var_name,
char *buf,
size_t buf_len);
213 const char *cookie_name,
char *buf,
size_t buf_len);
226 void mg_md5(
char *buf, ...);
231 #endif // __cplusplus 233 #endif // MONGOOSE_HEADER_INCLUDED Definition: mongoose.h:56
int mg_get_cookie(const struct mg_connection *, const char *cookie_name, char *buf, size_t buf_len)
Definition: mongoose.cpp:1530
void mg_send_file(struct mg_connection *conn, const char *path)
Definition: mongoose.cpp:2611
char * request_method
Definition: mongoose.h:37
char * uri
Definition: mongoose.h:38
struct mg_request_info::mg_header http_headers[64]
void *(* mg_callback_t)(enum mg_event event, struct mg_connection *conn, const struct mg_request_info *request_info)
Definition: mongoose.h:79
Definition: mongoose.h:57
int num_headers
Definition: mongoose.h:47
char * log_message
Definition: mongoose.h:42
int mg_write(struct mg_connection *, const void *buf, size_t len)
Definition: mongoose.cpp:1442
void mg_md5(char *buf,...)
Definition: mongoose.cpp:2019
Definition: mongoose.h:59
const char * mg_get_option(const struct mg_context *ctx, const char *name)
Definition: mongoose.cpp:539
int status_code
Definition: mongoose.h:45
int mg_get_var(const char *data, size_t data_len, const char *var_name, char *buf, size_t buf_len)
Definition: mongoose.cpp:1494
Definition: mongoose.h:35
void mg_stop(struct mg_context *)
Definition: mongoose.cpp:4202
int mg_modify_passwords_file(const char *passwords_file_name, const char *domain, const char *user, const char *password)
Definition: mongoose.cpp:2253
int remote_port
Definition: mongoose.h:44
char * http_version
Definition: mongoose.h:39
long remote_ip
Definition: mongoose.h:43
mg_event
Definition: mongoose.h:55
int mg_read(struct mg_connection *, void *buf, size_t len)
Definition: mongoose.cpp:1392
char * query_string
Definition: mongoose.h:40
struct mg_context * mg_start(mg_callback_t callback, void *user_data, const char **options)
Definition: mongoose.cpp:4216
Definition: mongoose.cpp:501
void * user_data
Definition: mongoose.h:36
int is_ssl
Definition: mongoose.h:46
const char ** mg_get_valid_option_names(void)
Definition: mongoose.cpp:517
Definition: mongoose.cpp:481
const char * mg_version(void)
Definition: mongoose.cpp:610
int mg_printf(struct mg_connection *, const char *fmt,...)
Definition: mongoose.cpp:1447
char * remote_user
Definition: mongoose.h:41
Definition: mongoose.h:58
const char * mg_get_header(const struct mg_connection *, const char *name)
Definition: mongoose.cpp:762