Skip to content

Commit 9edd9c3

Browse files
author
grothoff
committed
code cleanup, minor bug fixes, allow lookup up trailing values with key of NULL
git-svn-id: https://gnunet.org/svn/libmicrohttpd@22733 140774ce-b5e7-0310-ab8b-a85725594a96
1 parent 84981ef commit 9edd9c3

File tree

8 files changed

+583
-487
lines changed

8 files changed

+583
-487
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Tue Jul 17 23:50:43 CEST 2012
2+
Stylistic code clean up. Allowing lookup up of trailing values
3+
without keys using "MHD_lookup_connection_value" with a key of NULL
4+
(thus achieving consistency with the existing iterator API). -CG
5+
16
Tue Jul 17 22:37:05 CEST 2012
27
Adding experimental (!) code for MHD operation without listen socket. -CG
38

doc/microhttpd.texi

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,12 +1270,16 @@ and @code{MHD_YES} on success.
12701270

12711271

12721272
@deftypefun {const char *} MHD_lookup_connection_value (struct MHD_Connection *connection, enum MHD_ValueKind kind, const char *key)
1273-
Get a particular header value. If multiple values match the @var{kind},
1274-
return one of them (the ``first'', whatever that means). @var{key} must
1275-
reference a zero-terminated @ascii{}-coded string representing the
1276-
header to look for: it is compared against the headers using
1277-
@cfunction{strcasecmp}, so case is ignored. Return @mynull{} if no such
1278-
item was found.
1273+
Get a particular header value. If multiple values match the
1274+
@var{kind}, return one of them (the ``first'', whatever that means).
1275+
@var{key} must reference a zero-terminated @ascii{}-coded string
1276+
representing the header to look for: it is compared against the
1277+
headers using @cfunction{strcasecmp}, so case is ignored. A value of
1278+
NULL for @var{key} can be used to lookup 'trailing' values without a
1279+
key, for example if a URI is of the form
1280+
``http://example.com/?trailer'', a @var{key} of NULL can be used to
1281+
access ``tailer" The function returns @mynull{} if no matching item
1282+
was found.
12791283
@end deftypefun
12801284

12811285

0 commit comments

Comments
 (0)