Lines Matching refs:opts

753 static int http_response_append_splice(request_st * const r, http_response_opts * const opts, buffe…  in http_response_append_splice()  argument
769 ssize_t n = (opts->fdfmt == S_IFSOCK) in http_response_append_splice()
851 …eaders(request_st * const restrict r, http_response_opts * const restrict opts, char * const restr… in http_response_process_headers() argument
859 if ((s[5] == '1' || opts->backend != BACKEND_PROXY) && s[6] == '.' in http_response_process_headers()
868 opts->local_redir = 0; /*(disable; status was set)*/ in http_response_process_headers()
881 else if (__builtin_expect( (opts->backend == BACKEND_PROXY), 0)) { in http_response_process_headers()
907 if (opts->authorizer && (0 == r->http_status || 200 == r->http_status)){ in http_response_process_headers()
916 opts->local_redir = 0; /*(disable; status was set)*/ in http_response_process_headers()
932 if (opts->backend != BACKEND_PROXY) { in http_response_process_headers()
940 opts->local_redir = 0; /*(disable; status was set)*/ in http_response_process_headers()
952 if (opts->backend != BACKEND_PROXY && opts->backend != BACKEND_CGI) in http_response_process_headers()
958 if (opts->backend == BACKEND_PROXY) continue; in http_response_process_headers()
1095 handler_t http_response_parse_headers(request_st * const r, http_response_opts * const opts, buffer… in http_response_parse_headers() argument
1143 else if (opts->backend == BACKEND_CGI) { in http_response_parse_headers()
1169 if (0 != http_response_process_headers(r, opts, b->ptr, hoff, is_nph)) in http_response_parse_headers()
1177 if (opts->authorizer in http_response_parse_headers()
1186 if (opts->local_redir && r->http_status >= 300 && r->http_status < 400 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()
1201 http_response_xsendfile2(r, vb, opts->xsendfile_docroot); in http_response_parse_headers()
1209 …|| (opts->backend == BACKEND_FASTCGI /* X-LIGHTTPD-send-file is deprecated; historical for fastcgi… in http_response_parse_headers()
1212 http_response_xsendfile(r, vb, opts->xsendfile_docroot); in http_response_parse_headers()
1231 return (opts->headers) ? opts->headers(r, opts) : HANDLER_GO_ON; in http_response_parse_headers()
1235 handler_t http_response_read(request_st * const r, http_response_opts * const opts, buffer * const … in http_response_read() argument
1244 if (0 == fdevent_ioctl_fionread(fd, opts->fdfmt, (int *)&toread)) { in http_response_read()
1248 if (opts->simple_accum) { in http_response_read()
1249 int rc = http_response_append_splice(r, opts, b, fd, toread); in http_response_read()
1262 else if (toread > opts->max_per_read) in http_response_read()
1263 toread = opts->max_per_read; in http_response_read()
1320 avail = toread < opts->max_per_read && avail 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()
1376 handler_t rc = http_response_parse_headers(r, opts, b); in http_response_read()
1395 opts->simple_accum = 1; in http_response_read()
1403 int simple_accum = opts->simple_accum in http_response_read()