Lines Matching refs:con

146 int cache_export_cookie_params(server *srv, connection *con, plugin_data *p) {
151 if (NULL != (d = array_get_element(con->request.headers, "Cookie"))) {
208 int cache_parse_lua(server *srv, connection *con, plugin_data *p, buffer *fn) { in cache_parse_lua() argument
254 c_to_lua_push(L, header_tbl, CONST_STR_LEN("REQUEST_URI"), CONST_BUF_LEN(con->request.orig_uri)); in cache_parse_lua()
255 c_to_lua_push(L, header_tbl, CONST_STR_LEN("SCRIPT_NAME"), CONST_BUF_LEN(con->uri.path)); in cache_parse_lua()
256 c_to_lua_push(L, header_tbl, CONST_STR_LEN("SCRIPT_FILENAME"), CONST_BUF_LEN(con->physical.path)); in cache_parse_lua()
257 …c_to_lua_push(L, header_tbl, CONST_STR_LEN("DOCUMENT_ROOT"), CONST_BUF_LEN(con->physical.doc_root)… in cache_parse_lua()
258 if (!buffer_is_empty(con->request.pathinfo)) { in cache_parse_lua()
259 c_to_lua_push(L, header_tbl, CONST_STR_LEN("PATH_INFO"), CONST_BUF_LEN(con->request.pathinfo)); in cache_parse_lua()
274 buffer_copy_string_buffer(b, con->uri.query); in cache_parse_lua()
303 response_header_overwrite(srv, con, CONST_STR_LEN("Content-Type"), CONST_BUF_LEN(b)); in cache_parse_lua()
350 if (HANDLER_ERROR == stat_cache_get_entry(srv, con, b, &sce)) { in cache_parse_lua()
377 chunkqueue_append_file(con->write_queue, b, 0, sce->st.st_size); in cache_parse_lua()
398 con->file_finished = 1; in cache_parse_lua()
400 ds = (data_string *)array_get_element(con->response.headers, "Last-Modified"); in cache_parse_lua()
407 … response_header_overwrite(srv, con, CONST_STR_LEN("Last-Modified"), timebuf, sizeof(timebuf) - 1); in cache_parse_lua()
423 if (HANDLER_FINISHED == http_response_handle_cachable(srv, con, &tbuf)) { in cache_parse_lua()
427 chunkqueue_reset(con->write_queue); in cache_parse_lua()
431 chunkqueue_reset(con->write_queue); 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()
440 buffer_copy_string_buffer(con->physical.path, p->basedir); in cache_parse_lua()
441 buffer_append_string_buffer(con->physical.path, p->trigger_handler); in cache_parse_lua()
443 chunkqueue_reset(con->write_queue); in cache_parse_lua()
455 int cache_parse_lua(server *srv, connection *con, plugin_data *p, buffer *fn) { in cache_parse_lua() argument
457 UNUSED(con); in cache_parse_lua()