32#ifndef GENLIB_NET_HTTP_WEBSERVER_H
33#define GENLIB_NET_HTTP_WEBSERVER_H
50 char RangeHeader[200];
51 char AcceptLanguageHeader[200];
100 const char *alias_name,
103 const char *alias_content,
105 size_t alias_content_length,
108 time_t last_modified);
119 const char *root_dir);
129 const char *cors_string);
148 const char *name,
const char *content,
size_t len);
Defines constants that for some reason are not defined on some systems.
#define UPNP_EXPORT_SPEC
Export functions on WIN32 DLLs.
Definition UpnpGlobal.h:101
Definition webserver.h:45
const void * CorsHeader
Definition webserver.h:58
long RecvWriteSize
Definition webserver.h:56
off_t ReadSendSize
Definition webserver.h:54
const void * RequestCookie
Definition webserver.h:62
const void * Cookie
Definition webserver.h:60
Definition httpparser.h:181
Definition httpparser.h:216
int web_server_init()
Initilialize the different documents. Initialize the memory for root directory for web server....
Definition webserver.c:511
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:634
int web_server_set_cors(const char *cors_string)
Assign the Access-Control-Allow-Origin specfied by the input const char* cors_string parameterto the ...
Definition webserver.c:652
void web_server_destroy(void)
Release memory allocated for the global web server root directory and the global XML document....
Definition webserver.c:540
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:433
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:1762