libwebsockets
Lightweight C library for HTML5 websockets
Vhost mounts and options

Data Structures

struct  lws_protocol_vhost_options
 
struct  lws_http_mount
 

Enumerations

enum  lws_mount_protocols {
  LWSMPRO_HTTP = 0 , LWSMPRO_HTTPS = 1 , LWSMPRO_FILE = 2 , LWSMPRO_CGI = 3 ,
  LWSMPRO_REDIR_HTTP = 4 , LWSMPRO_REDIR_HTTPS = 5 , LWSMPRO_CALLBACK = 6
}
 

Detailed Description

Vhost mounts and options

Enumeration Type Documentation

◆ lws_mount_protocols

#include <include/libwebsockets/lws-context-vhost.h>

enum lws_mount_protocols This specifies the mount protocol for a mountpoint, whether it is to be served from a filesystem, or it is a cgi etc.

Enumerator
LWSMPRO_HTTP 

http reverse proxy

LWSMPRO_HTTPS 

https reverse proxy

LWSMPRO_FILE 

serve from filesystem directory

LWSMPRO_CGI 

pass to CGI to handle

LWSMPRO_REDIR_HTTP 

redirect to http:// url

LWSMPRO_REDIR_HTTPS 

redirect to https:// url

LWSMPRO_CALLBACK 

hand by named protocol's callback

1005  {
1006  LWSMPRO_HTTP = 0,
1007  LWSMPRO_HTTPS = 1,
1008  LWSMPRO_FILE = 2,
1009  LWSMPRO_CGI = 3,
1010  LWSMPRO_REDIR_HTTP = 4,
1011  LWSMPRO_REDIR_HTTPS = 5,
1012  LWSMPRO_CALLBACK = 6,
1013 };
@ LWSMPRO_CGI
Definition: lws-context-vhost.h:1009
@ LWSMPRO_HTTP
Definition: lws-context-vhost.h:1006
@ LWSMPRO_FILE
Definition: lws-context-vhost.h:1008
@ LWSMPRO_REDIR_HTTPS
Definition: lws-context-vhost.h:1011
@ LWSMPRO_CALLBACK
Definition: lws-context-vhost.h:1012
@ LWSMPRO_REDIR_HTTP
Definition: lws-context-vhost.h:1010
@ LWSMPRO_HTTPS
Definition: lws-context-vhost.h:1007