32#ifndef GENLIB_NET_HTTP_WEBSERVER_H
33#define GENLIB_NET_HTTP_WEBSERVER_H
50 char RangeHeader[200];
51 char AcceptLanguageHeader[200];
99 const char* alias_name,
102 const char* alias_content,
104 size_t alias_content_length,
106 time_t last_modified);
118 const char* root_dir);
125void web_server_callback(
Definition: webserver.h:45
long RecvWriteSize
Definition: webserver.h:56
off_t ReadSendSize
Definition: webserver.h:54
const void * Cookie
Definition: webserver.h:58
Definition: httpparser.h:179
Definition: httpparser.h:213
int web_server_init()
Initilialize the different documents. Initialize the memory for root directory for web server....
Definition: webserver.c:467
int web_server_set_root_dir(const char *root_dir)
Assign the path specfied by the input const char* root_dir parameter to the global Document root dire...
Definition: webserver.c:562
void web_server_destroy(void)
Release memory allocated for the global web server root directory and the global XML document....
Definition: webserver.c:495
int web_server_set_alias(const char *alias_name, const char *alias_content, size_t alias_content_length, time_t last_modified)
Replaces current alias with the given alias. To remove the current alias, set alias_name to NULL.
Definition: webserver.c:421