Home
last modified time | relevance | path

Searched refs:opts (Results 1 – 25 of 26) sorted by relevance

12

/lighttpd1.4/src/
H A Dhttp-header-glue.c769 ssize_t n = (opts->fdfmt == S_IFSOCK) in http_response_append_splice()
952 if (opts->backend != BACKEND_PROXY && opts->backend != BACKEND_CGI) in http_response_process_headers()
1177 if (opts->authorizer in http_response_parse_headers()
1195 if (opts->xsendfile_allow) { in http_response_parse_headers()
1198 if (opts->backend == BACKEND_FASTCGI in http_response_parse_headers()
1231 return (opts->headers) ? opts->headers(r, opts) : HANDLER_GO_ON; in http_response_parse_headers()
1248 if (opts->simple_accum) { in http_response_read()
1353 if (NULL != opts->parse) { in http_response_read()
1354 handler_t rc = opts->parse(r, opts, b, (size_t)n); in http_response_read()
1359 else if (opts->simple_accum) { in http_response_read()
[all …]
H A Dhttp_cgi.c120 http_cgi_headers (request_st * const r, http_cgi_opts * const opts, http_cgi_header_append_cb cb, v… in http_cgi_headers() argument
134 if (!opts->authorizer) in http_cgi_headers()
144 len = opts->strip_request_uri ? buffer_clen(opts->strip_request_uri) : 0; in http_cgi_headers()
149 if (n < len || 0 != memcmp(s, opts->strip_request_uri->ptr, len) in http_cgi_headers()
170 if (!opts->authorizer) { in http_cgi_headers()
179 const buffer * const bd = (opts->docroot) in http_cgi_headers()
180 ? opts->docroot in http_cgi_headers()
196 if (opts->docroot) { in http_cgi_headers()
198 buffer_copy_path_len2(tb, BUF_PTR_LEN(opts->docroot), in http_cgi_headers()
203 BUF_PTR_LEN(opts->docroot)); in http_cgi_headers()
[all …]
H A Dmod_fastcgi.c238 http_cgi_opts opts = { in fcgi_create_env() local
270 if (0 != http_cgi_headers(r, &opts, fcgi_env_add, b)) { in fcgi_create_env()
395 if (HANDLER_GO_ON != http_response_parse_headers(r, &hctx->opts, hdrs)) { in fcgi_recv_parse_loop()
410 hctx->opts.authorizer |= /*(save response streaming flags)*/ in fcgi_recv_parse_loop()
468 static handler_t fcgi_recv_parse(request_st * const r, struct http_response_opts_t *opts, buffer *b… in fcgi_recv_parse() argument
469 handler_ctx * const hctx = (handler_ctx *)opts->pdata; in fcgi_recv_parse()
489 hctx->opts.backend = BACKEND_FASTCGI; in fcgi_check_extension()
490 hctx->opts.parse = fcgi_recv_parse; in fcgi_check_extension()
491 hctx->opts.pdata = hctx; /*(skip +255 for potential padding)*/ in fcgi_check_extension()
492 hctx->opts.max_per_read = sizeof(FCGI_Header)+FCGI_MAX_LENGTH+1; in fcgi_check_extension()
H A Dmod_cgi.c88 http_response_opts opts; member
511 handler_ctx *hctx = (handler_ctx *)opts->pdata; in cgi_response_headers()
573 switch (http_response_read(r, &hctx->opts, in cgi_recv_response()
828 http_cgi_opts opts = { 0, 0, NULL, NULL }; in cgi_create_env() local
846 http_cgi_headers(r, &opts, cgi_env_add, env); in cgi_create_env()
1044 hctx->opts.max_per_read = in URIHANDLER_FUNC()
1051 hctx->opts.fdfmt = S_IFIFO; in URIHANDLER_FUNC()
1052 hctx->opts.backend = BACKEND_CGI; in URIHANDLER_FUNC()
1053 hctx->opts.authorizer = 0; in URIHANDLER_FUNC()
1057 hctx->opts.pdata = hctx; in URIHANDLER_FUNC()
[all …]
H A Dmod_vhostdb_dbi.c75 static int mod_vhostdb_dbconf_setup (server *srv, const array *opts, void **vdata) in mod_vhostdb_dbconf_setup() argument
80 for (size_t i = 0; i < opts->used; ++i) { in mod_vhostdb_dbconf_setup()
81 const data_string *ds = (data_string *)opts->data[i]; in mod_vhostdb_dbconf_setup()
128 for (size_t j = 0; j < opts->used; ++j) { in mod_vhostdb_dbconf_setup()
129 data_unset *du = opts->data[j]; in mod_vhostdb_dbconf_setup()
H A Dmod_authn_sasl.c106 static plugin_config * mod_authn_sasl_parse_opts(server *srv, const array * const opts) { in mod_authn_sasl_parse_opts() argument
114 array_get_element_klen(opts, CONST_STR_LEN("service")); in mod_authn_sasl_parse_opts()
118 array_get_element_klen(opts, CONST_STR_LEN("fqdn")); in mod_authn_sasl_parse_opts()
132 array_get_element_klen(opts, CONST_STR_LEN("pwcheck_method")); in mod_authn_sasl_parse_opts()
157 array_get_element_klen(opts, CONST_STR_LEN("sasldb_path")); in mod_authn_sasl_parse_opts()
H A Dmod_ajp13.c561 http_cgi_opts opts = { in ajp13_create_env()
568 http_cgi_opts opts = { 0, 0, NULL, NULL }; in ajp13_create_env()
570 if (0 != http_cgi_headers(r, &opts, ajp13_env_add, cgienv)) break; in ajp13_create_env()
829 http_response_parse_headers(r, &hctx->opts, hdrs)) { in ajp13_recv_parse_loop()
843 hctx->opts.authorizer |= /*(save response streaming flags)*/ in ajp13_recv_parse_loop()
953 ajp13_recv_parse (request_st * const r, struct http_response_opts_t * const opts, buffer * const b,… in ajp13_recv_parse() argument
955 handler_ctx * const hctx = (handler_ctx *)opts->pdata; in ajp13_recv_parse()
978 hctx->opts.backend = BACKEND_AJP13; in ajp13_check_extension()
979 hctx->opts.parse = ajp13_recv_parse; in ajp13_check_extension()
980 hctx->opts.pdata = hctx; in ajp13_check_extension()
H A Dresponse.h43 handler_t http_response_parse_headers(request_st *r, http_response_opts *opts, buffer *hdrs);
44 handler_t http_response_read(request_st *r, http_response_opts *opts, buffer *b, fdnode *fdn);
H A Dmod_authn_dbi.c104 mod_authn_dbi_dbconf_setup (server *srv, const array *opts, void **vdata) in mod_authn_dbi_dbconf_setup() argument
110 for (size_t i = 0; i < opts->used; ++i) { in mod_authn_dbi_dbconf_setup()
111 const data_string *ds = (data_string *)opts->data[i]; in mod_authn_dbi_dbconf_setup()
160 for (size_t j = 0; j < opts->used; ++j) { in mod_authn_dbi_dbconf_setup()
161 data_unset *du = opts->data[j]; in mod_authn_dbi_dbconf_setup()
H A Dmod_vhostdb_pgsql.c46 static int mod_vhostdb_dbconf_setup (server *srv, const array *opts, void **vdata) in mod_vhostdb_dbconf_setup() argument
51 for (size_t i = 0; i < opts->used; ++i) { in mod_vhostdb_dbconf_setup()
52 const data_string *ds = (data_string *)opts->data[i]; in mod_vhostdb_dbconf_setup()
H A Dmod_vhostdb_mysql.c47 static int mod_vhostdb_dbconf_setup (server *srv, const array *opts, void **vdata) in mod_vhostdb_dbconf_setup() argument
53 for (size_t i = 0; i < opts->used; ++i) { in mod_vhostdb_dbconf_setup()
54 const data_string *ds = (data_string *)opts->data[i]; in mod_vhostdb_dbconf_setup()
H A Dmod_scgi.c183 http_cgi_opts opts = { 0, 0, host->docroot, NULL }; in scgi_create_env() local
196 if (0 != http_cgi_headers(r, &opts, scgi_env_add, b)) { in scgi_create_env()
265 hctx->opts.backend = BACKEND_SCGI; in scgi_check_extension()
H A Dmod_proxy.c267 http_header_remap_opts *opts = ck_malloc(sizeof(header)); in mod_proxy_parse_header_opts() local
268 memcpy(opts, &header, sizeof(header)); in mod_proxy_parse_header_opts()
269 return opts; in mod_proxy_parse_header_opts()
1054 static handler_t proxy_response_headers(request_st * const r, struct http_response_opts_t *opts) { in proxy_response_headers() argument
1056 handler_ctx *hctx = (handler_ctx *)opts->pdata; in proxy_response_headers()
1133 hctx->gw.opts.backend = BACKEND_PROXY; in mod_proxy_check_extension()
1134 hctx->gw.opts.pdata = hctx; in mod_proxy_check_extension()
1135 hctx->gw.opts.headers = proxy_response_headers; in mod_proxy_check_extension()
H A Dhttp_cgi.h23 int http_cgi_headers (request_st *r, http_cgi_opts *opts, http_cgi_header_append_cb cb, void *vdata…
H A Dmod_extforward.c87 unsigned int opts; member
183 pconf->opts = cpv->v.u; in mod_extforward_merge_config_cpv()
285 unsigned int opts = 0; in mod_extforward_parse_opts() local
319 opts |= param; in mod_extforward_parse_opts()
321 return opts; in mod_extforward_parse_opts()
395 p->defaults.opts = PROXY_FORWARDED_NONE; in SETDEFAULTS_FUNC()
900 if (p->conf.opts & PROXY_FORWARDED_HOST) { in mod_extforward_Forwarded()
965 if (p->conf.opts & PROXY_FORWARDED_REMOTE_USER) { in mod_extforward_Forwarded()
1001 if ((p->conf.opts & PROXY_FORWARDED_CREATE_XFF) in mod_extforward_Forwarded()
H A Dmod_vhostdb.c83 vhostdb_cache_init (const array *opts) in vhostdb_cache_init() argument
88 for (uint32_t i = 0, used = opts->used; i < used; ++i) { in vhostdb_cache_init()
89 data_unset *du = opts->data[i]; in vhostdb_cache_init()
H A Dconfigfile.c594 unsigned short int opts = srv->srvconf.http_url_normalize; in config_http_parseopts() local
653 opts |= opt; in config_http_parseopts()
655 opts &= ~opt; in config_http_parseopts()
657 opts = 0; in config_http_parseopts()
665 if (opts != 0) { in config_http_parseopts()
666 opts |= HTTP_PARSEOPT_URL_NORMALIZE; in config_http_parseopts()
667 if ((opts & (HTTP_PARSEOPT_URL_NORMALIZE_PATH_2F_DECODE in config_http_parseopts()
676 if ((opts & (HTTP_PARSEOPT_URL_NORMALIZE_PATH_DOTSEG_REMOVE in config_http_parseopts()
685 if (!(opts & (HTTP_PARSEOPT_URL_NORMALIZE_UNRESERVED in config_http_parseopts()
687 opts |= HTTP_PARSEOPT_URL_NORMALIZE_UNRESERVED in config_http_parseopts()
[all …]
H A Dgw_backend.c1842 hctx->opts.xsendfile_allow = hctx->host->xsendfile_allow; in gw_reconnect()
1843 hctx->opts.xsendfile_docroot = hctx->host->xsendfile_docroot; in gw_reconnect()
2199 if (hctx->opts.backend == BACKEND_PROXY) { in gw_handle_subrequest()
2312 buffer *b = (hctx->opts.backend == BACKEND_FASTCGI in gw_recv_response()
2313 || hctx->opts.backend == BACKEND_AJP13) in gw_recv_response()
2656 hctx->opts.max_per_read = in gw_check_extension()
2663 hctx->opts.fdfmt = S_IFSOCK; in gw_check_extension()
2664 hctx->opts.authorizer = (gw_mode == GW_AUTHORIZER); in gw_check_extension()
2665 hctx->opts.local_redir = 0; in gw_check_extension()
2666 hctx->opts.xsendfile_allow = host->xsendfile_allow; in gw_check_extension()
[all …]
H A Dmod_vhostdb_ldap.c91 static int mod_vhostdb_dbconf_setup (server *srv, const array *opts, void **vdata) in mod_vhostdb_dbconf_setup() argument
99 for (size_t i = 0; i < opts->used; ++i) { in mod_vhostdb_dbconf_setup()
100 data_string *ds = (data_string *)opts->data[i]; in mod_vhostdb_dbconf_setup()
H A Dmod_wstunnel.c389 static handler_t wstunnel_recv_parse(request_st * const r, http_response_opts * const opts, buffer … in wstunnel_recv_parse() argument
390 handler_ctx *hctx = (handler_ctx *)opts->pdata; in wstunnel_recv_parse()
499 hctx->gw.opts.backend = BACKEND_PROXY; /*(act proxy-like)*/ in wstunnel_handler_setup()
500 hctx->gw.opts.pdata = hctx; in wstunnel_handler_setup()
501 hctx->gw.opts.parse = wstunnel_recv_parse; in wstunnel_handler_setup()
H A Dmod_webdav.c394 unsigned short opts; member
478 pconf->opts = (unsigned short)cpv->v.u; in mod_webdav_merge_config_cpv()
559 unsigned short opts = 0; in SETDEFAULTS_FUNC() local
571 opts |= MOD_WEBDAV_PROPFIND_DEPTH_INFINITY; in SETDEFAULTS_FUNC()
583 opts |= MOD_WEBDAV_CPYTMP_PARTIAL_PUT; in SETDEFAULTS_FUNC()
590 cpv->v.u = opts; in SETDEFAULTS_FUNC()
4226 ((pconf->opts & MOD_WEBDAV_UNSAFE_PROPFIND_FOLLOW_SYMLINK) in mod_webdav_propfind()
4614 if (pconf->opts & (MOD_WEBDAV_UNSAFE_PARTIAL_PUT_COMPAT in mod_webdav_put_prep()
4784 if ((pconf->opts & MOD_WEBDAV_CPYTMP_PARTIAL_PUT) in mod_webdav_put_range()
4785 && (!(pconf->opts & MOD_WEBDAV_UNSAFE_PARTIAL_PUT_COMPAT) in mod_webdav_put_range()
[all …]
H A Dgw_backend.h326 http_response_opts opts; member
H A Dmod_sockproxy.c160 hctx->opts.backend = BACKEND_PROXY; in mod_sockproxy_connection_accept()
H A Dmod_auth.c106 http_auth_cache_init (const array *opts) in http_auth_cache_init() argument
111 for (uint32_t i = 0, used = opts->used; i < used; ++i) { in http_auth_cache_init()
112 data_unset *du = opts->data[i]; in http_auth_cache_init()
H A Dmod_ssi.c547 http_cgi_opts opts = { 0, 0, NULL, NULL }; in build_ssi_cgi_vars() local
559 if (0 != http_cgi_headers(r, &opts, ssi_env_add, p->ssi_cgi_env)) { in build_ssi_cgi_vars()

12