Lines Matching defs:new

403     apr_table_t *new = apr_table_make(p, env_arr->nalloc);
409 apr_table_setn(new, apr_pstrcat(p, "REDIRECT_", elts[i].key, NULL),
413 return new;
419 request_rec *new;
426 new = (request_rec *) apr_pcalloc(r->pool, sizeof(request_rec));
428 new->connection = r->connection;
429 new->server = r->server;
430 new->pool = r->pool;
438 new->method = r->method;
439 new->method_number = r->method_number;
440 new->allowed_methods = ap_make_method_list(new->pool, 2);
441 ap_parse_uri(new, new_uri);
442 new->parsed_uri.port_str = r->parsed_uri.port_str;
443 new->parsed_uri.port = r->parsed_uri.port;
445 new->request_config = ap_create_request_config(r->pool);
447 new->per_dir_config = r->server->lookup_defaults;
449 new->prev = r;
450 r->next = new;
452 new->useragent_addr = r->useragent_addr;
453 new->useragent_ip = r->useragent_ip;
458 ap_run_create_request(new);
462 new->the_request = r->the_request;
464 new->allowed = r->allowed;
466 new->status = r->status;
467 new->assbackwards = r->assbackwards;
468 new->header_only = r->header_only;
469 new->protocol = r->protocol;
470 new->proto_num = r->proto_num;
471 new->hostname = r->hostname;
472 new->request_time = r->request_time;
473 new->main = r->main;
475 new->headers_in = r->headers_in;
476 new->trailers_in = r->trailers_in;
477 new->headers_out = apr_table_make(r->pool, 12);
478 if (ap_is_HTTP_REDIRECT(new->status)) {
481 apr_table_setn(new->headers_out, "Location", location);
483 new->err_headers_out = r->err_headers_out;
484 new->trailers_out = apr_table_make(r->pool, 5);
485 new->subprocess_env = rename_original_env(r->pool, r->subprocess_env);
486 new->notes = apr_table_make(r->pool, 5);
488 new->htaccess = r->htaccess;
489 new->no_cache = r->no_cache;
490 new->expecting_100 = r->expecting_100;
491 new->no_local_copy = r->no_local_copy;
492 new->read_length = r->read_length; /* We can only read it once */
493 new->vlist_validator = r->vlist_validator;
495 new->proto_output_filters = r->proto_output_filters;
496 new->proto_input_filters = r->proto_input_filters;
498 new->input_filters = new->proto_input_filters;
500 if (new->main) {
508 new->output_filters = r->output_filters;
510 f = new->output_filters;
519 /* To remove the filter, first set f->r to the *new*
520 * request_rec, so that ->output_filters on 'new' is
522 f->r = new;
532 } while (f && f != new->proto_output_filters);
537 new->output_filters = new->proto_output_filters;
540 update_r_in_filters(new->input_filters, r, new);
541 update_r_in_filters(new->output_filters, r, new);
543 apr_table_setn(new->subprocess_env, "REDIRECT_STATUS",
549 new->used_path_info = AP_REQ_DEFAULT_PATH_INFO;
552 new->invoke_mtx = r->invoke_mtx;
560 if ((access_status = ap_run_post_read_request(new))) {
561 ap_die(access_status, new);
565 return new;
607 * at our "new" instance of r. In particular, some of rr's structures
645 request_rec *new = internal_internal_redirect(new_uri, r);
650 if (!new) {
654 access_status = ap_run_quick_handler(new, 0); /* Not a look-up request */
656 access_status = ap_process_request_internal(new);
658 access_status = ap_invoke_handler(new);
661 ap_die(access_status, new);
671 request_rec *new = internal_internal_redirect(new_uri, r);
674 if (!new) {
679 ap_set_content_type(new, r->content_type);
680 access_status = ap_process_request_internal(new);
682 access_status = ap_invoke_handler(new);
684 ap_die(access_status, new);