aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-07-17 21:52:26 +0000
committerChristian Grothoff <christian@grothoff.org>2012-07-17 21:52:26 +0000
commita232740396820ffb48f240f87db4b39735ad2b52 (patch)
tree8285e2fb736bc55efcbaa317460075e1f9fa2af4 /doc
parentea8a8fe4558a23f504363ff7390d4411de3873e5 (diff)
downloadlibmicrohttpd-a232740396820ffb48f240f87db4b39735ad2b52.tar.gz
libmicrohttpd-a232740396820ffb48f240f87db4b39735ad2b52.zip
code cleanup, minor bug fixes, allow lookup up trailing values with key of NULL
Diffstat (limited to 'doc')
-rw-r--r--doc/microhttpd.texi16
1 files changed, 10 insertions, 6 deletions
diff --git a/doc/microhttpd.texi b/doc/microhttpd.texi
index 27495729..753bdfa5 100644
--- a/doc/microhttpd.texi
+++ b/doc/microhttpd.texi
@@ -1270,12 +1270,16 @@ and @code{MHD_YES} on success.
1270 1270
1271 1271
1272@deftypefun {const char *} MHD_lookup_connection_value (struct MHD_Connection *connection, enum MHD_ValueKind kind, const char *key) 1272@deftypefun {const char *} MHD_lookup_connection_value (struct MHD_Connection *connection, enum MHD_ValueKind kind, const char *key)
1273Get a particular header value. If multiple values match the @var{kind}, 1273Get a particular header value. If multiple values match the
1274return one of them (the ``first'', whatever that means). @var{key} must 1274@var{kind}, return one of them (the ``first'', whatever that means).
1275reference a zero-terminated @ascii{}-coded string representing the 1275@var{key} must reference a zero-terminated @ascii{}-coded string
1276header to look for: it is compared against the headers using 1276representing the header to look for: it is compared against the
1277@cfunction{strcasecmp}, so case is ignored. Return @mynull{} if no such 1277headers using @cfunction{strcasecmp}, so case is ignored. A value of
1278item was found. 1278NULL for @var{key} can be used to lookup 'trailing' values without a
1279key, for example if a URI is of the form
1280``http://example.com/?trailer'', a @var{key} of NULL can be used to
1281access ``tailer" The function returns @mynull{} if no matching item
1282was found.
1279@end deftypefun 1283@end deftypefun
1280 1284
1281 1285