mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
uri matching
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user