105 } |
106 } |
106 |
107 |
107 const VirtualServer* request_get_vs(Request *rq) { |
108 const VirtualServer* request_get_vs(Request *rq) { |
108 return ((NSAPIRequest*)rq)->vs; |
109 return ((NSAPIRequest*)rq)->vs; |
109 } |
110 } |
|
111 |
|
112 struct stat* request_stat_path(const char *path, Request *rq) { |
|
113 // TODO: reimplement with vfs support |
|
114 // TODO: use pool |
|
115 struct stat *s = malloc(sizeof(struct stat)); |
|
116 if(stat(path, s)) { |
|
117 return NULL; |
|
118 } |
|
119 // TODO: statpath and staterror |
|
120 rq->finfo = s; |
|
121 return s; |
|
122 } |
|
123 |
|
124 void request_free(Request *rq) { |
|
125 // TODO: implement |
|
126 } |
|
127 |
|
128 Request* request_restart_internal(const char *uri, Request *rq) { |
|
129 // TODO: implement |
|
130 return NULL; |
|
131 } |
|
132 |
|
133 |
|
134 char* servact_translate_uri(char *uri, Session *sn) { |
|
135 // TODO: implement |
|
136 return NULL; |
|
137 } |