uri matching

This commit is contained in:
Christian Grothoff
2007-06-13 07:29:56 +00:00
parent 9a0026c7f5
commit e6a6d5f18b
2 changed files with 17 additions and 18 deletions
+8 -17
View File
@@ -1,18 +1,19 @@
Run "autoreconf -f -i" to create configure.
This is still pre-alpha software. The following
things need to be implemented before it can be used
at all:
things need to be implemented (in list of importance)
before certain features can be used at all:
In general:
===========
For ANYTHING:
=============
session.c:
- MHD_session_get_fdset (essentially not implemented)
- MHD_find_access_handler (not implemented)
- add additional LOG messages for debugging
For GET args:
=============
session.c:
- MHD_parse_session_headers: take URL apart
For PUT/POST:
=============
@@ -20,28 +21,18 @@ session.c:
- MHD_parse_session_headers (determine upload size)
- MHD_session_handle_read (proper handling of upload end)
For COOKIES:
============
session.c:
- MHD_parse_session_headers: take cookie header apart
For GET args:
=============
session.c:
- MHD_parse_session_headers: take URL apart
For IPv6:
=========
daemon.c:
- fix start daemon and accept handlers
(tricky bit will be supporting both on
the same socket / port!)
For SSL:
========
microhttpd.h:
+9 -1
View File
@@ -282,7 +282,15 @@ MHD_parse_session_headers(struct MHD_Session * session) {
*/
static struct MHD_Access_Handler *
MHD_find_access_handler(struct MHD_Session * session) {
/* FIXME: do real lookup based on URI! */
struct MHD_Access_Handler * pos;
pos = session->daemon->handlers;
while (pos != NULL) {
if (0 == strcmp(session->url,
pos->uri_prefix))
return pos;
pos = pos->next;
}
return &session->daemon->default_handler;
}