00001 00023 void request_clear_uri(request_t *rq); 00024 int request_set_path_info(request_t *rq, const char *path_info); 00025 00026 00031 void request_clear_uri(request_t *rq) 00032 { 00033 U_FREE(rq->uri); 00034 U_FREE(rq->protocol); 00035 U_FREE(rq->path_info); 00036 U_FREE(rq->query); 00037 U_FREE(rq->filename); 00038 U_FREE(rq->resolved_path_info); 00039 U_FREE(rq->resolved_filename); 00040 U_FREE(rq->content_type); 00041 U_FREE(rq->content_encoding); 00042 } 00043 00044 int request_set_path_info(request_t *rq, const char *path_info) 00045 { 00046 dbg_err_if (rq == NULL); 00047 dbg_err_if (path_info == NULL); 00048 00049 REQUEST_SET_STRING_FIELD(rq->path_info, path_info); 00050 00051 return 0; 00052 err: 00053 return ~0; 00054 } 00055