diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-07-17 21:52:26 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-07-17 21:52:26 +0000 |
commit | a232740396820ffb48f240f87db4b39735ad2b52 (patch) | |
tree | 8285e2fb736bc55efcbaa317460075e1f9fa2af4 /doc | |
parent | ea8a8fe4558a23f504363ff7390d4411de3873e5 (diff) | |
download | libmicrohttpd-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.texi | 16 |
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) |
1273 | Get a particular header value. If multiple values match the @var{kind}, | 1273 | Get a particular header value. If multiple values match the |
1274 | return one of them (the ``first'', whatever that means). @var{key} must | 1274 | @var{kind}, return one of them (the ``first'', whatever that means). |
1275 | reference a zero-terminated @ascii{}-coded string representing the | 1275 | @var{key} must reference a zero-terminated @ascii{}-coded string |
1276 | header to look for: it is compared against the headers using | 1276 | representing the header to look for: it is compared against the |
1277 | @cfunction{strcasecmp}, so case is ignored. Return @mynull{} if no such | 1277 | headers using @cfunction{strcasecmp}, so case is ignored. A value of |
1278 | item was found. | 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. | ||
1279 | @end deftypefun | 1283 | @end deftypefun |
1280 | 1284 | ||
1281 | 1285 | ||