[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r5035 - in libmicrohttpd: . src/daemon
From: |
gnunet |
Subject: |
[GNUnet-SVN] r5035 - in libmicrohttpd: . src/daemon |
Date: |
Wed, 13 Jun 2007 01:29:56 -0600 (MDT) |
Author: grothoff
Date: 2007-06-13 01:29:56 -0600 (Wed, 13 Jun 2007)
New Revision: 5035
Modified:
libmicrohttpd/README
libmicrohttpd/src/daemon/session.c
Log:
uri matching
Modified: libmicrohttpd/README
===================================================================
--- libmicrohttpd/README 2007-06-13 07:26:04 UTC (rev 5034)
+++ libmicrohttpd/README 2007-06-13 07:29:56 UTC (rev 5035)
@@ -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 @@
- 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:
Modified: libmicrohttpd/src/daemon/session.c
===================================================================
--- libmicrohttpd/src/daemon/session.c 2007-06-13 07:26:04 UTC (rev 5034)
+++ libmicrohttpd/src/daemon/session.c 2007-06-13 07:29:56 UTC (rev 5035)
@@ -282,7 +282,15 @@
*/
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;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r5035 - in libmicrohttpd: . src/daemon,
gnunet <=