|
libwebsockets
Lightweight C library for HTML5 websockets
|
#include <lws-context-vhost.h>
Data Fields | |
| const struct lws_http_mount * | mount_next |
| const char * | mountpoint |
| const char * | origin |
| const char * | def |
| const char * | protocol |
| const struct lws_protocol_vhost_options * | cgienv |
| const struct lws_protocol_vhost_options * | extra_mimetypes |
| const struct lws_protocol_vhost_options * | interpret |
| int | cgi_timeout |
| int | cache_max_age |
| unsigned int | auth_mask |
| unsigned int | cache_reusable:1 |
| unsigned int | cache_revalidate:1 |
| unsigned int | cache_intermediaries:1 |
| unsigned char | origin_protocol |
| unsigned char | mountpoint_len |
| const char * | basic_auth_login_file |
| void * | _unused [2] |
struct lws_http_mount
arguments for mounting something in a vhost's url namespace
| void* lws_http_mount::_unused[2] |
dummy
| unsigned int lws_http_mount::auth_mask |
bits set here must be set for authorized client session
| const char* lws_http_mount::basic_auth_login_file |
NULL, or filepath to use to check basic auth logins against. (requires LWSAUTHM_DEFAULT)
| unsigned int lws_http_mount::cache_intermediaries |
set if intermediaries are allowed to cache
| int lws_http_mount::cache_max_age |
max-age for reuse of client cache of files, seconds
| unsigned int lws_http_mount::cache_reusable |
set if client cache may reuse this
| unsigned int lws_http_mount::cache_revalidate |
set if client cache should revalidate on use
| int lws_http_mount::cgi_timeout |
seconds cgi is allowed to live, if cgi://mount type
| const struct lws_protocol_vhost_options* lws_http_mount::cgienv |
optional linked-list of cgi options. These are created as environment variables for the cgi process
| const char* lws_http_mount::def |
default target, eg, "index.html"
| const struct lws_protocol_vhost_options* lws_http_mount::extra_mimetypes |
optional linked-list of mimetype mappings
| const struct lws_protocol_vhost_options* lws_http_mount::interpret |
optional linked-list of files to be interpreted
| const struct lws_http_mount* lws_http_mount::mount_next |
pointer to next struct lws_http_mount
| const char* lws_http_mount::mountpoint |
mountpoint in http pathspace, eg, "/"
| unsigned char lws_http_mount::mountpoint_len |
length of mountpoint string
| const char* lws_http_mount::origin |
path to be mounted, eg, "/var/www/warmcat.com"
| unsigned char lws_http_mount::origin_protocol |
one of enum lws_mount_protocols
| const char* lws_http_mount::protocol |
"protocol-name" to handle mount