Home
last modified time | relevance | path

Searched refs:uri (Results 1 – 25 of 54) sorted by relevance

123

/lighttpd1.4/src/t/
H A Dtest_mod_userdir.c20 buffer_copy_string_len(&r->uri.path, CONST_STR_LEN("")); in test_mod_userdir_docroot_handler()
33 buffer_copy_string_len(&r->uri.path, CONST_STR_LEN("/")); in test_mod_userdir_docroot_handler()
39 buffer_copy_string_len(&r->uri.path, CONST_STR_LEN("/other")); in test_mod_userdir_docroot_handler()
45 buffer_copy_string_len(&r->uri.path, CONST_STR_LEN("/~")); in test_mod_userdir_docroot_handler()
58 buffer_copy_string_len(&r->uri.path, CONST_STR_LEN("/~/")); in test_mod_userdir_docroot_handler()
64 buffer_copy_string_len(&r->uri.path, CONST_STR_LEN("/~jan/")); in test_mod_userdir_docroot_handler()
84 buffer_copy_string_len(&r->uri.path, CONST_STR_LEN("/~.jan/")); in test_mod_userdir_docroot_handler()
90 buffer_copy_string_len(&r->uri.path, CONST_STR_LEN("/~jan/")); in test_mod_userdir_docroot_handler()
108 buffer_copy_string_len(&r->uri.path, CONST_STR_LEN("/~jan/")); in test_mod_userdir_docroot_handler()
117 buffer_copy_string_len(&r->uri.path, CONST_STR_LEN("/~jan/")); in test_mod_userdir_docroot_handler()
[all …]
H A Dtest_request.c319 assert(buffer_eq_slen(&r->uri.path, CONST_STR_LEN("/index.html"))); in test_request_http_request_parse()
621 free(r.uri.authority.ptr); in test_request()
622 free(r.uri.path.ptr); in test_request()
623 free(r.uri.scheme.ptr); in test_request()
H A Dtest_mod_indexfile.c16 buffer_copy_string_len(&r->uri.path, CONST_STR_LEN("/")); in test_mod_indexfile_reset()
108 free(r.uri.path.ptr); in test_mod_indexfile()
H A Dtest_mod_ssi.c122 buffer_copy_string_len(&r->uri.path, CONST_STR_LEN("/ssi-include.shtml")); in test_mod_ssi_read_fd()
165 free(r.uri.path.ptr); in test_mod_ssi()
/lighttpd1.4/src/
H A Drequest.c539 const char * const host = uri + (uri[4] == ':' ? 7 : 8); in http_request_parse_reqline_uri()
549 || (HTTP_METHOD_CONNECT == r->http_method && (uri[0] == ':' || light_isdigit(uri[0]))) in http_request_parse_reqline_uri()
552 return uri; in http_request_parse_reqline_uri()
593 if (uri[0] != '*' || uri[1] != '\0' in http_request_validate_pseudohdrs()
920 const char *uri = ptr + i + 1; in http_request_parse_reqline() local
922 if (uri == p) in http_request_parse_reqline()
924 len = (size_t)(p - uri - 1); in http_request_parse_reqline()
927 uri = http_request_parse_reqline_uri(r, uri, len, http_parseopts); in http_request_parse_reqline()
928 if (NULL == uri) return 400; in http_request_parse_reqline()
929 len = (size_t)(p - uri - 1); in http_request_parse_reqline()
[all …]
H A Dreqpool.c59 r->server_name = &r->uri.authority; in request_init_data()
110 buffer_clear(&r->uri.scheme); in request_reset()
189 r->server_name = &r->uri.authority; in request_reset_ex()
190 buffer_clear(&r->uri.authority); in request_reset_ex()
191 buffer_reset(&r->uri.path); in request_reset_ex()
192 buffer_reset(&r->uri.query); in request_reset_ex()
217 free(r->uri.scheme.ptr); in request_free_data()
218 free(r->uri.authority.ptr); in request_free_data()
219 free(r->uri.path.ptr); in request_free_data()
220 free(r->uri.query.ptr); in request_free_data()
H A Dmod_status.c214 if (!buffer_is_blank(&r->uri.path)) in mod_status_html_rtable_r()
217 if (!buffer_is_blank(&r->uri.query)) { in mod_status_html_rtable_r()
294 if (!buffer_is_blank(&r->uri.query) && 0 == memcmp(r->uri.query.ptr, CONST_STR_LEN("refresh="))) { in mod_status_handle_server_status_html()
588 if (buffer_clen(&r->uri.query) >= sizeof("jsonp=")-1 in mod_status_handle_server_status_json()
589 && 0 == memcmp(r->uri.query.ptr, CONST_STR_LEN("jsonp="))) { in mod_status_handle_server_status_json()
593 const char *f = r->uri.query.ptr + sizeof("jsonp=")-1; in mod_status_handle_server_status_json()
683 } else if (buffer_clen(&r->uri.query) >= sizeof("json")-1 in mod_status_handle_server_status()
684 && 0 == memcmp(r->uri.query.ptr, CONST_STR_LEN("json"))) { in mod_status_handle_server_status()
799 buffer_is_equal(p->conf.status_url, &r->uri.path)) { in mod_status_handler()
802 buffer_is_equal(p->conf.config_url, &r->uri.path)) { in mod_status_handler()
[all …]
H A Dhttp_cgi.c46 size_t ulen = buffer_clen(&r->uri.path); in http_cgi_local_redir()
51 && (0 != strncmp(vb->ptr, r->uri.path.ptr, ulen) in http_cgi_local_redir()
138 n = buffer_clen(&r->uri.query); in http_cgi_headers()
140 n ? r->uri.query.ptr : "", n); in http_cgi_headers()
172 BUF_PTR_LEN(&r->uri.path)); in http_cgi_headers()
199 BUF_PTR_LEN(&r->uri.path)); in http_cgi_headers()
245 BUF_PTR_LEN(&r->uri.scheme)); in http_cgi_headers()
247 if (buffer_is_equal_string(&r->uri.scheme, CONST_STR_LEN("https"))) in http_cgi_headers()
H A Dmod_indexfile.c112 r->uri.path.ptr, r->physical.path.ptr); in __attribute_nonnull__()
120 buffer_copy_buffer(&r->uri.path, v); in __attribute_nonnull__()
130 buffer_append_string_buffer(&r->uri.path, v); in __attribute_nonnull__()
144 if (!buffer_has_slash_suffix(&r->uri.path)) return HANDLER_GO_ON; in URIHANDLER_FUNC()
154 "URI : %s", r->uri.path.ptr); in URIHANDLER_FUNC()
H A Dresponse.c209 "URI : %s", r->uri.path.ptr); in http_response_physical_path_error()
299 buffer_truncate(&r->uri.path, buffer_clen(&r->uri.path) - len); in http_response_physical_path_check()
319 if (!buffer_has_slash_suffix(&r->uri.path)) { in http_response_physical_path_check()
364 : &r->uri.authority; in http_response_config()
425 "URI-scheme : %s", r->uri.scheme.ptr); in http_response_prepare()
427 "URI-authority : %s", r->uri.authority.ptr); in http_response_prepare()
429 "URI-path (clean): %s", r->uri.path.ptr); in http_response_prepare()
432 BUFFER_INTLEN_PTR(&r->uri.query)); in http_response_prepare()
440 && r->uri.path.ptr[0] == '*' && r->uri.path.ptr[1] == '\0') in http_response_prepare()
462 buffer_copy_buffer(&r->physical.rel_path, &r->uri.path); in http_response_prepare()
[all …]
H A Dmod_ssi.c808 if (!buffer_is_blank(&r->uri.scheme) && !buffer_is_blank(&r->uri.authority)) { in process_ssi_stmt()
813 if (!buffer_is_blank(&r->uri.query)) { in process_ssi_stmt()
822 if (!buffer_is_blank(&r->uri.query)) { in process_ssi_stmt()
901 buffer_copy_string_len(tb, r->uri.path.ptr, sl - r->uri.path.ptr + 1); in process_ssi_stmt()
934 sep = r->uri.path.ptr; in process_ssi_stmt()
1021 upsave = r->uri.path; in process_ssi_stmt()
1028 memset(&r->uri.path, 0, sizeof(buffer)); in process_ssi_stmt()
1029 buffer_copy_buffer(&r->uri.path, tb); in process_ssi_stmt()
1030 r->physical.rel_path = r->uri.path; in process_ssi_stmt()
1040 free(r->uri.path.ptr); in process_ssi_stmt()
[all …]
H A Dmod_vhostdb.c100 const int ndx = splaytree_djbhash(BUF_PTR_LEN(&r->uri.authority)); in mod_vhostdb_cache_query()
107 && buffer_is_equal_string(&r->uri.authority, ve->server_name, ve->slen) in mod_vhostdb_cache_query()
115 const int ndx = splaytree_djbhash(BUF_PTR_LEN(&r->uri.authority)); in mod_vhostdb_cache_insert()
274 if (buffer_is_blank(&r->uri.authority)) return HANDLER_GO_ON; in REQUEST_FUNC()
279 && buffer_is_equal_string(&r->uri.authority, ve->server_name, ve->slen)) in REQUEST_FUNC()
309 ve = vhostdb_cache_entry_init(&r->uri.authority, b); in REQUEST_FUNC()
H A Dmod_access.c86 r->uri.path.ptr); in mod_access_reject()
90 r->uri.path.ptr); in mod_access_reject()
132 &r->uri.path, r->conf.force_lowercase_filenames) in URIHANDLER_FUNC()
H A Dmod_userdir.c284 if (buffer_is_blank(&r->uri.path)) return HANDLER_GO_ON; in URIHANDLER_FUNC()
287 if (r->uri.path.ptr[0] != '/' || in URIHANDLER_FUNC()
288 r->uri.path.ptr[1] != '~') return HANDLER_GO_ON; in URIHANDLER_FUNC()
298 const char * const uptr = r->uri.path.ptr + 2; in URIHANDLER_FUNC()
H A Dmod_webdav.c1673 force_assert(0 != uri->used); in webdav_lock_activelocks()
1727 UNUSED(uri); in webdav_lock_delete_uri()
1746 force_assert(0 != uri->used); in webdav_lock_delete_uri_col()
1768 UNUSED(uri); in webdav_lock_delete_uri_col()
2001 UNUSED(uri); in webdav_prop_delete_uri()
2135 UNUSED(uri); in webdav_prop_select_prop()
2170 UNUSED(uri); in webdav_prop_select_props()
2204 UNUSED(uri); in webdav_prop_select_propnames()
3998 const buffer * const uri) in webdav_has_lock() argument
4129 webdav_lock_activelocks(pconf, uri, 1, in webdav_has_lock()
[all …]
H A Dmod_skeleton.c117 if (buffer_is_blank(&r->uri.path)) return HANDLER_GO_ON; in URIHANDLER_FUNC()
123 || NULL == array_match_value_suffix(p->conf.match, &r->uri.path)) { in URIHANDLER_FUNC()
H A Dmod_redirect.c175 burl.scheme = &r->uri.scheme; in URIHANDLER_FUNC()
176 burl.authority = &r->uri.authority; in URIHANDLER_FUNC()
179 burl.query = &r->uri.query; in URIHANDLER_FUNC()
H A Dhttp-header-glue.c36 if (!buffer_is_blank(&r->uri.authority)) { in http_response_buffer_append_authority()
37 buffer_append_string_buffer(o, &r->uri.authority); in http_response_buffer_append_authority()
89 if (buffer_is_equal_string(&r->uri.scheme, CONST_STR_LEN("https"))) { in http_response_buffer_append_authority()
107 buffer_append_str2(o, BUF_PTR_LEN(&r->uri.scheme), in http_response_redirect_to_directory()
125 buffer_append_string_encoded(vb, BUF_PTR_LEN(&r->uri.path), in http_response_redirect_to_directory()
128 if (!buffer_is_blank(&r->uri.query)) in http_response_redirect_to_directory()
130 BUF_PTR_LEN(&r->uri.query)); in http_response_redirect_to_directory()
327 "not a regular file: %s -> %s", r->uri.path.ptr, path->ptr); in http_response_send_file()
358 r->uri.path.ptr, path->ptr); in http_response_send_file()
1129 "response headers too large for %s", r->uri.path.ptr); in http_response_parse_headers()
H A Dgw_backend.c826 gw_hash(BUF_PTR_LEN(&r->uri.authority), in gw_host_get()
838 r->uri.authority.ptr, cur_max); in gw_host_get()
962 r->uri.path.ptr, BUFFER_INTLEN_PTR(&r->uri.query), in gw_host_get()
2271 BUF_PTR_LEN(&r->uri.path)); in gw_authorizer_ok()
2384 r->uri.path.ptr, BUFFER_INTLEN_PTR(&r->uri.query)); in gw_recv_response_error()
2393 r->uri.path.ptr, BUFFER_INTLEN_PTR(&r->uri.query)); in gw_recv_response_error()
2400 r->uri.path.ptr, BUFFER_INTLEN_PTR(&r->uri.query)); in gw_recv_response_error()
2448 r->uri.path.ptr, BUFFER_INTLEN_PTR(&r->uri.query), in gw_process_fdevent()
2533 size_t uri_path_len = buffer_clen(&r->uri.path); in gw_check_extension()
2620 buffer_truncate(&r->uri.path, 0); in gw_check_extension()
[all …]
H A Dmod_rewrite.c297 burl.scheme = &r->uri.scheme; in process_rewrite_rules()
298 burl.authority = &r->uri.authority; in process_rewrite_rules()
301 burl.query = &r->uri.query; in process_rewrite_rules()
H A Dmod_ajp13.c451 if (!buffer_is_blank(&r->uri.query)) { in ajp13_enc_attributes()
452 n = ajp13_enc_attribute(x, n, &r->uri.query, 0x05); in ajp13_enc_attributes()
456 if (buffer_is_equal_string(&r->uri.scheme, CONST_STR_LEN("https"))) { in ajp13_enc_attributes()
590 n = ajp13_enc_string(x, n, BUF_PTR_LEN(&r->uri.path)); in ajp13_create_env()
606 n = ajp13_enc_byte(x,n,buffer_is_equal_string(&r->uri.scheme, in ajp13_create_env()
H A Dmod_vhostdb_pgsql.c132 buffer_clen(&r->uri.authority) * 2); in mod_vhostdb_pgsql_query()
135 BUF_PTR_LEN(&r->uri.authority), &err); in mod_vhostdb_pgsql_query()
/lighttpd1.4/doc/outdated/
H A Dmagnet.txt92 * lighty.env["uri.path"] = "/search.php"
93 * lighty.env["uri.path-raw"] = "/search.php"
94 * lighty.env["uri.scheme"] = "http"
95 * lighty.env["uri.authority"] = "example.org"
96 * lighty.env["uri.query"] = "q=lighty"
109 lighty.env["request.uri"] = ...
116 lighty.env["uri.query"] = ...
156 … lighty.header["Location"] = "https://" .. lighty.env["uri.authority"] .. lighty.env["request.uri"]
164 changing the request.uri in a rewrite. It restarts the splitting of the request-uri again.
227 if (lighty.env["uri.query"]) then
[all …]
H A Dplugins.txt56 called after uri.path_raw, uri.authority and uri.scheme are set
58 called after uri.path (a clean URI without .. and %20) is set
177 called after uri.path is set
H A Drewrite.txt34 url.rewrite-once = ( "<regex>" => "<relative-uri>" )
41 url.rewrite-repeat = ( "<regex>" => "<relative-uri>" )

123