32#ifndef GENLIB_NET_HTTP_WEBSERVER_H
33#define GENLIB_NET_HTTP_WEBSERVER_H
49 char RangeHeader[200];
50 char AcceptLanguageHeader[200];
97 const char *alias_name,
100 const char *alias_content,
102 size_t alias_content_length,
105 time_t last_modified);
116 const char *root_dir);
Definition webserver.h:44
long RecvWriteSize
Definition webserver.h:55
off_t ReadSendSize
Definition webserver.h:53
const void * RequestCookie
Definition webserver.h:59
const void * Cookie
Definition webserver.h:57
Definition httpparser.h:182
Definition httpparser.h:217
int web_server_init()
Initilialize the different documents. Initialize the memory for root directory for web server....
Definition webserver.c:470
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:591
void web_server_destroy(void)
Release memory allocated for the global web server root directory and the global XML document....
Definition webserver.c:498
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:422
void web_server_callback(http_parser_t *parser, http_message_t *req, SOCKINFO *info)
Main entry point into web server; Handles HTTP GET and HEAD requests.
Definition webserver.c:1700