21#ifndef MONGOOSE_HEADER_INCLUDED
22#define MONGOOSE_HEADER_INCLUDED
79typedef void * (*mg_callback_t)(
enum mg_event event,
110 const char **options);
151 const char *password);
198int 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);
226void mg_md5(
char *buf, ...);
int mg_modify_passwords_file(const char *passwords_file_name, const char *domain, const char *user, const char *password)
Definition: mongoose.cpp:2261
int mg_read(struct mg_connection *, void *buf, size_t len)
Definition: mongoose.cpp:1400
int mg_write(struct mg_connection *, const void *buf, size_t len)
Definition: mongoose.cpp:1450
int mg_get_cookie(const struct mg_connection *, const char *cookie_name, char *buf, size_t buf_len)
Definition: mongoose.cpp:1538
const char * mg_get_option(const struct mg_context *ctx, const char *name)
Definition: mongoose.cpp:547
void mg_send_file(struct mg_connection *conn, const char *path)
Definition: mongoose.cpp:2619
const char * mg_get_header(const struct mg_connection *, const char *name)
Definition: mongoose.cpp:770
void *(* mg_callback_t)(enum mg_event event, struct mg_connection *conn, const struct mg_request_info *request_info)
Definition: mongoose.h:79
void mg_md5(char *buf,...)
Definition: mongoose.cpp:2027
mg_event
Definition: mongoose.h:55
@ MG_INIT_SSL
Definition: mongoose.h:59
@ MG_NEW_REQUEST
Definition: mongoose.h:56
@ MG_HTTP_ERROR
Definition: mongoose.h:57
@ MG_EVENT_LOG
Definition: mongoose.h:58
int mg_get_var(const char *data, size_t data_len, const char *var_name, char *buf, size_t buf_len)
Definition: mongoose.cpp:1502
const char ** mg_get_valid_option_names(void)
Definition: mongoose.cpp:525
void mg_stop(struct mg_context *)
Definition: mongoose.cpp:4210
int mg_printf(struct mg_connection *, const char *fmt,...)
Definition: mongoose.cpp:1455
const char * mg_version(void)
Definition: mongoose.cpp:618
struct mg_context * mg_start(mg_callback_t callback, void *user_data, const char **options)
Definition: mongoose.cpp:4224
Definition: mongoose.cpp:509
Definition: mongoose.cpp:489
void * user_data
Definition: mongoose.cpp:494
Definition: mongoose.h:35
long remote_ip
Definition: mongoose.h:43
char * request_method
Definition: mongoose.h:37
void * user_data
Definition: mongoose.h:36
char * uri
Definition: mongoose.h:38
char * query_string
Definition: mongoose.h:40
char * http_version
Definition: mongoose.h:39
char * log_message
Definition: mongoose.h:42
int status_code
Definition: mongoose.h:45
char * remote_user
Definition: mongoose.h:41
int remote_port
Definition: mongoose.h:44
int is_ssl
Definition: mongoose.h:46
int num_headers
Definition: mongoose.h:47
struct mg_request_info::mg_header http_headers[64]