added QSE_HTTPD_RSRC_PROXY_ALLOW_UPGRADE and related code with it
This commit is contained in:
@ -769,11 +769,12 @@ enum qse_httpd_rsrc_proxy_flag_t
|
||||
{
|
||||
QSE_HTTPD_RSRC_PROXY_RAW = (1 << 0), /* raw proxying. set this for CONNECT */
|
||||
QSE_HTTPD_RSRC_PROXY_TRANSPARENT = (1 << 1),
|
||||
QSE_HTTPD_RSRC_PROXY_DST_STR = (1 << 2), /* destination is an unresovled string pointed to by dst.str */
|
||||
QSE_HTTPD_RSRC_PROXY_ENABLE_DNS = (1 << 3), /* dns service enabled (udp) */
|
||||
QSE_HTTPD_RSRC_PROXY_ENABLE_URS = (1 << 4), /* url rewriting enabled (udp) */
|
||||
QSE_HTTPD_RSRC_PROXY_DNS_SERVER = (1 << 5), /* dns address specified */
|
||||
QSE_HTTPD_RSRC_PROXY_URS_SERVER = (1 << 6), /* urs address specified */
|
||||
QSE_HTTPD_RSRC_PROXY_ALLOW_UPGRADE = (1 << 2),
|
||||
QSE_HTTPD_RSRC_PROXY_DST_STR = (1 << 3), /* destination is an unresovled string pointed to by dst.str */
|
||||
QSE_HTTPD_RSRC_PROXY_ENABLE_DNS = (1 << 4), /* dns service enabled (udp) */
|
||||
QSE_HTTPD_RSRC_PROXY_ENABLE_URS = (1 << 5), /* url rewriting enabled (udp) */
|
||||
QSE_HTTPD_RSRC_PROXY_DNS_SERVER = (1 << 6), /* dns address specified */
|
||||
QSE_HTTPD_RSRC_PROXY_URS_SERVER = (1 << 7), /* urs address specified */
|
||||
};
|
||||
typedef enum qse_httpd_rsrc_proxy_flag_t qse_httpd_rsrc_proxy_flag_t;
|
||||
|
||||
@ -828,7 +829,7 @@ typedef enum qse_httpd_rsrc_reloc_flag_t qse_httpd_rsrc_reloc_flag_t;
|
||||
typedef struct qse_httpd_rsrc_reloc_t qse_httpd_rsrc_reloc_t;
|
||||
struct qse_httpd_rsrc_reloc_t
|
||||
{
|
||||
int flags;
|
||||
int flags; /**< 0 or bitwise-ORed of #qse_httpd_rsrc_reloc_flag_t */
|
||||
const qse_mchar_t* dst;
|
||||
};
|
||||
|
||||
@ -836,7 +837,7 @@ typedef struct qse_httpd_rsrc_t qse_httpd_rsrc_t;
|
||||
struct qse_httpd_rsrc_t
|
||||
{
|
||||
qse_httpd_rsrc_type_t type;
|
||||
int flags; /**< bitwised-ORed of #qse_httpd_rsrc_flag_t */
|
||||
int flags; /**< 0 or bitwise-ORed of #qse_httpd_rsrc_flag_t */
|
||||
union
|
||||
{
|
||||
struct
|
||||
|
@ -42,6 +42,7 @@ enum qse_httpd_serverstd_root_type_t
|
||||
QSE_HTTPD_SERVERSTD_ROOT_PATH,
|
||||
QSE_HTTPD_SERVERSTD_ROOT_TEXT,
|
||||
QSE_HTTPD_SERVERSTD_ROOT_PROXY,
|
||||
QSE_HTTPD_SERVERSTD_ROOT_RELOC,
|
||||
QSE_HTTPD_SERVERSTD_ROOT_ERROR
|
||||
};
|
||||
typedef enum qse_httpd_serverstd_root_type_t qse_httpd_serverstd_root_type_t;
|
||||
@ -65,6 +66,7 @@ struct qse_httpd_serverstd_root_t
|
||||
} text;
|
||||
|
||||
qse_httpd_rsrc_proxy_t proxy;
|
||||
qse_httpd_rsrc_reloc_t reloc;
|
||||
|
||||
struct
|
||||
{
|
||||
|
Reference in New Issue
Block a user