Home
last modified time | relevance | path

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

12

/mOS-networking-stack/samples/lighttpd-1.4.32/src/
H A Dresponse.c288 con->request.uri->used = qstr - con->request.uri->ptr; in http_response_prepare()
289 con->request.uri->ptr[con->request.uri->used++] = '\0'; in http_response_prepare()
295 buffer_copy_string_len(con->uri.path_raw, con->request.uri->ptr, qstr - con->request.uri->ptr); in http_response_prepare()
297 buffer_reset (con->uri.query); in http_response_prepare()
298 buffer_copy_string_buffer(con->uri.path_raw, con->request.uri); in http_response_prepare()
341 con->uri.path_raw->ptr[0] == '*' && con->uri.path_raw->ptr[1] == '\0') { in http_response_prepare()
343 buffer_copy_string_buffer(con->uri.path, con->uri.path_raw); in http_response_prepare()
391 con->uri.path->ptr[0] == '*' && con->uri.path_raw->ptr[1] == '\0') { in http_response_prepare()
588 if (con->uri.path->ptr[con->uri.path->used - 2] != '/') { in http_response_prepare()
638 con->uri.path, in http_response_prepare()
[all …]
H A Drequest.c365 *(uri - 1) = '\0'; in http_request_parse()
457 if (0 == strncmp(uri, "http://", 7) && in http_request_parse()
459 reqline_host = uri + 7; in http_request_parse()
465 reqline_host = uri + 8; in http_request_parse()
471 buffer_copy_string_len(con->request.uri, uri, proto - uri - 1); in http_request_parse()
482 buf[0] = con->request.uri->ptr[j]; in http_request_parse()
485 if (con->request.uri->ptr[j] > 32 && in http_request_parse()
486 con->request.uri->ptr[j] != 127) { in http_request_parse()
495 con->request.uri->ptr[j]); in http_request_parse()
525 uri = con->parse_request->ptr + first; in http_request_parse()
[all …]
H A Dmod_evhost.c168 register char *ptr = con->uri.authority->ptr + con->uri.authority->used - 1; in mod_evhost_parse_host()
175 for(;ptr > con->uri.authority->ptr;ptr--) { in mod_evhost_parse_host()
196 if (colon != con->uri.authority->ptr) { in mod_evhost_parse_host()
197 for(ptr = colon - 1, i = 1; ptr > con->uri.authority->ptr; ptr--) { in mod_evhost_parse_host()
268 if (con->uri.authority->used == 0) return HANDLER_GO_ON; in mod_evhost_uri_handler()
294 char *colon = strchr(con->uri.authority->ptr, ':'); in mod_evhost_uri_handler()
297 buffer_append_string_buffer(p->tmp_buf, con->uri.authority); /* adds fqdn */ in mod_evhost_uri_handler()
300 …buffer_append_string_len(p->tmp_buf, con->uri.authority->ptr, colon - con->uri.authority->ptr); /*… in mod_evhost_uri_handler()
H A Dmod_webdav.c81 request_uri uri; member
97 p->uri.scheme = buffer_init(); in INIT_FUNC()
99 p->uri.path = buffer_init(); in INIT_FUNC()
149 buffer_free(p->uri.scheme); in FREE_FUNC()
150 buffer_free(p->uri.path_raw); in FREE_FUNC()
151 buffer_free(p->uri.path); in FREE_FUNC()
152 buffer_free(p->uri.authority); in FREE_FUNC()
1194 CONST_BUF_LEN(uri), in webdav_has_lock()
1205 UNUSED(uri); in webdav_has_lock()
1859 if (!buffer_is_equal(p->uri.authority, con->uri.authority)) { in URIHANDLER_FUNC()
[all …]
H A Dmod_indexfile.c144 if (con->uri.path->used == 0) return HANDLER_GO_ON; in URIHANDLER_FUNC()
145 if (con->uri.path->ptr[con->uri.path->used - 2] != '/') return HANDLER_GO_ON; in URIHANDLER_FUNC()
151 log_error_write(srv, __FILE__, __LINE__, "sb", "URI :", con->uri.path); in URIHANDLER_FUNC()
183 con->uri.path, in URIHANDLER_FUNC()
194 buffer_append_string_buffer(con->uri.path, ds->value); in URIHANDLER_FUNC()
H A Dmod_userdir.c175 if (con->uri.path->used == 0) return HANDLER_GO_ON; in URIHANDLER_FUNC()
186 if (con->uri.path->ptr[0] != '/' || in URIHANDLER_FUNC()
187 con->uri.path->ptr[1] != '~') return HANDLER_GO_ON; in URIHANDLER_FUNC()
189 if (NULL == (rel_url = strchr(con->uri.path->ptr + 2, '/'))) { in URIHANDLER_FUNC()
197 if (0 == rel_url - (con->uri.path->ptr + 2)) { in URIHANDLER_FUNC()
201 buffer_copy_string_len(p->username, con->uri.path->ptr + 2, rel_url - (con->uri.path->ptr + 2)); in URIHANDLER_FUNC()
H A Dconnections.c692 CLEAN(request.uri);
699 CLEAN(uri.scheme);
701 CLEAN(uri.path);
702 CLEAN(uri.path_raw);
703 CLEAN(uri.query);
759 CLEAN(request.uri);
766 CLEAN(uri.scheme);
768 CLEAN(uri.path);
770 CLEAN(uri.query);
832 CLEAN(request.uri);
[all …]
H A Dmod_simple_vhost.c232 con->uri.authority->used && in mod_simple_vhost_docroot()
233 buffer_is_equal(p->conf.docroot_cache_key, con->uri.authority)) { in mod_simple_vhost_docroot()
239 if ((con->uri.authority->used == 0) || in mod_simple_vhost_docroot()
240 build_doc_root(srv, con, p, p->doc_root, con->uri.authority)) { in mod_simple_vhost_docroot()
254 buffer_copy_string_buffer(con->server_name, con->uri.authority); in mod_simple_vhost_docroot()
258 buffer_copy_string_buffer(p->conf.docroot_cache_key, con->uri.authority); in mod_simple_vhost_docroot()
H A Dmod_access.c128 if (con->uri.path->used == 0) return HANDLER_GO_ON; in URIHANDLER_FUNC()
132 s_len = con->uri.path->used - 1; in URIHANDLER_FUNC()
151 if (0 == strncasecmp(con->uri.path->ptr + s_len - ct_len, ds->value->ptr, ct_len)) { in URIHANDLER_FUNC()
155 if (0 == strncmp(con->uri.path->ptr + s_len - ct_len, ds->value->ptr, ct_len)) { in URIHANDLER_FUNC()
H A Dhttp-header-glue.c131 if (con->uri.authority->used) { in http_response_redirect_to_directory()
132 buffer_append_string_buffer(o, con->uri.authority); in http_response_redirect_to_directory()
202 buffer_append_string_buffer(o, con->uri.path); in http_response_redirect_to_directory()
204 if (!buffer_is_empty(con->uri.query)) { in http_response_redirect_to_directory()
206 buffer_append_string_buffer(o, con->uri.query); in http_response_redirect_to_directory()
H A Dmod_rewrite.c363 buffer_copy_string_buffer(p->match_buf, con->request.uri); in process_rewrite_rules()
394 buffer_reset(con->request.uri); in process_rewrite_rules()
403 buffer_append_string_len(con->request.uri, pattern + start, k - start); in process_rewrite_rules()
407 buffer_append_string_len(con->request.uri, pattern+k, pattern[k] == pattern[k+1] ? 1 : 2); in process_rewrite_rules()
411 buffer_append_string(con->request.uri, list[num]); in process_rewrite_rules()
420 config_append_cond_match_buffer(con, p->conf.context, con->request.uri, num); in process_rewrite_rules()
428 buffer_append_string_len(con->request.uri, pattern + start, pattern_len - start); in process_rewrite_rules()
H A Dmod_status.c306 buffer_append_string_buffer(b, con->uri.authority); in mod_status_handle_server_status_html()
519 buffer_append_string_buffer(b, c->uri.authority); in mod_status_handle_server_status_html()
527 if (!buffer_is_empty(c->uri.path)) { in mod_status_handle_server_status_html()
528 buffer_append_string_encoded(b, CONST_BUF_LEN(c->uri.path), ENCODING_HTML); in mod_status_handle_server_status_html()
531 if (!buffer_is_empty(c->uri.query)) { in mod_status_handle_server_status_html()
533 buffer_append_string_encoded(b, CONST_BUF_LEN(c->uri.query), ENCODING_HTML); in mod_status_handle_server_status_html()
659 if (buffer_is_equal_string(con->uri.query, CONST_STR_LEN("auto"))) { in mod_status_handle_server_status()
816 buffer_is_equal(p->conf.status_url, con->uri.path)) { in mod_status_handler()
819 buffer_is_equal(p->conf.config_url, con->uri.path)) { in mod_status_handler()
822 buffer_is_equal(p->conf.statistics_url, con->uri.path)) { in mod_status_handler()
H A Dmod_skeleton.c170 if (con->uri.path->used == 0) return HANDLER_GO_ON; in URIHANDLER_FUNC()
174 s_len = con->uri.path->used - 1; in URIHANDLER_FUNC()
183 if (0 == strncmp(con->uri.path->ptr + s_len - ct_len, ds->value->ptr, ct_len)) { in URIHANDLER_FUNC()
H A Dmod_fastcgi.c2022 if (!buffer_is_empty(con->uri.query)) { in fcgi_create_env()
3324 "for", con->uri.path, "?", con->uri.query, ", reconnecting"); in fcgi_handle_fdevent()
3332 "for", con->uri.path, "?", con->uri.query, ", closing connection"); in fcgi_handle_fdevent()
3347 "for", con->uri.path, "?", con->uri.query, ", terminating connection"); in fcgi_handle_fdevent()
3399 con->uri.path, "?", con->uri.query, in fcgi_handle_fdevent()
3530 if ((ct_len <= con->uri.path->used -1) && in fcgi_check_extension()
3571 "all handlers for", con->uri.path, "?", con->uri.query, in fcgi_check_extension()
3645 con->uri.path->used = 1; in fcgi_check_extension()
3646 con->uri.path->ptr[con->uri.path->used - 1] = '\0'; in fcgi_check_extension()
3648 con->uri.path->used > extension->key->used && in fcgi_check_extension()
[all …]
H A Dmod_cml_lua.c255 c_to_lua_push(L, header_tbl, CONST_STR_LEN("SCRIPT_NAME"), CONST_BUF_LEN(con->uri.path)); in cache_parse_lua()
274 buffer_copy_string_buffer(b, con->uri.query); in cache_parse_lua()
437 buffer_copy_string_buffer(con->uri.path, p->baseurl); in cache_parse_lua()
438 buffer_append_string_buffer(con->uri.path, p->trigger_handler); in cache_parse_lua()
H A Dmod_usertrack.c178 if (con->uri.path->used == 0) return HANDLER_GO_ON; in URIHANDLER_FUNC()
222 li_MD5_Update(&Md5Ctx, (unsigned char *)con->uri.path->ptr, con->uri.path->used - 1); in URIHANDLER_FUNC()
H A Dmod_secure_download.c201 if (con->uri.path->used == 0) return HANDLER_GO_ON; in URIHANDLER_FUNC()
223 …if (0 != strncmp(con->uri.path->ptr, p->conf.uri_prefix->ptr, p->conf.uri_prefix->used - 1)) retur… in URIHANDLER_FUNC()
225 md5_str = con->uri.path->ptr + p->conf.uri_prefix->used - 1; in URIHANDLER_FUNC()
H A Dmod_mysql_vhost.c349 if (!con->uri.authority->used) return HANDLER_GO_ON;
360 buffer_is_equal(c->server_name, con->uri.authority)) goto GO_ON;
365 buffer_append_string_buffer(p->tmp_buf, con->uri.authority);
398 buffer_copy_string_buffer(c->server_name, con->uri.authority);
H A Dconfigfile-glue.c288 if (!buffer_is_empty(con->uri.authority)) { in config_check_cond_nocache()
294 l = con->uri.authority; in config_check_cond_nocache()
391 l = con->uri.scheme; in config_check_cond_nocache()
395 l = con->uri.path; in config_check_cond_nocache()
399 l = con->uri.query; in config_check_cond_nocache()
H A Dmod_trigger_b4_dl.c325 if (con->uri.path->used == 0) return HANDLER_GO_ON; in URIHANDLER_FUNC()
361 …if ((n = pcre_exec(p->conf.trigger_regex, NULL, con->uri.path->ptr, con->uri.path->used - 1, 0, 0,… in URIHANDLER_FUNC()
412 …if ((n = pcre_exec(p->conf.download_regex, NULL, con->uri.path->ptr, con->uri.path->used - 1, 0, 0… in URIHANDLER_FUNC()
H A Dmod_expire.c291 if (con->uri.path->used == 0) return HANDLER_GO_ON; in URIHANDLER_FUNC()
295 s_len = con->uri.path->used - 1; in URIHANDLER_FUNC()
304 if (0 == strncmp(con->uri.path->ptr, ds->key->ptr, ct_len)) { in URIHANDLER_FUNC()
/mOS-networking-stack/samples/lighttpd-1.4.32/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>" )
H A Dsecdownload.txt29 secdownload.uri-prefix = <string> (default: /)
75 <uri-prefix><token>/<timestamp-in-hex><rel-path>
145 secdownload.uri-prefix = "/dl/"

12