diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-06-10 21:58:53 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-06-10 21:58:53 +0200 |
commit | 2abe788d8ab1426b03bdb1d27ca34c60b0a37769 (patch) | |
tree | 3cc4ff0c1e305af364481606cb84555b245c64f8 /doc | |
parent | d7709c55803364cd4573bc57e4fc3c95064ea3cd (diff) | |
download | libmicrohttpd-2abe788d8ab1426b03bdb1d27ca34c60b0a37769.tar.gz libmicrohttpd-2abe788d8ab1426b03bdb1d27ca34c60b0a37769.zip |
fix manual entry for MHD_lookup_connection_value
Diffstat (limited to 'doc')
-rw-r--r-- | doc/libmicrohttpd.texi | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi index 419cf44a..bd6da838 100644 --- a/doc/libmicrohttpd.texi +++ b/doc/libmicrohttpd.texi | |||
@@ -1837,12 +1837,18 @@ Get a particular header value. If multiple values match the | |||
1837 | @var{kind}, return one of them (the ``first'', whatever that means). | 1837 | @var{kind}, return one of them (the ``first'', whatever that means). |
1838 | @var{key} must reference a zero-terminated ASCII-coded string | 1838 | @var{key} must reference a zero-terminated ASCII-coded string |
1839 | representing the header to look for: it is compared against the | 1839 | representing the header to look for: it is compared against the |
1840 | headers using @code{strcasecmp()}, so case is ignored. A value of | 1840 | headers using (basically) @code{strcasecmp()}, so case is ignored. |
1841 | @code{NULL} for @var{key} can be used to lookup 'trailing' values without a | 1841 | @end deftypefun |
1842 | key, for example if a URI is of the form | 1842 | |
1843 | ``http://example.com/?trailer'', a @var{key} of @code{NULL} can be used to | 1843 | @deftypefun {const char *} MHD_lookup_connection_value_n (struct MHD_Connection *connection, enum MHD_ValueKind kind, const char *key, size_t key_size, const char **value_ptr, size_t *value_size_ptr) |
1844 | access ``tailer" The function returns @code{NULL} if no matching item | 1844 | Get a particular header value. If multiple values match the |
1845 | was found. | 1845 | @var{kind}, return one of them (the ``first'', whatever that means). |
1846 | @var{key} must reference an ASCII-coded string | ||
1847 | representing the header to look for: it is compared against the | ||
1848 | headers using (basically) @code{strncasecmp()}, so case is ignored. | ||
1849 | The @var{value_ptr} is set to the address of the value found, | ||
1850 | and @var{value_size_ptr} is set to the number of bytes in the | ||
1851 | value. | ||
1846 | @end deftypefun | 1852 | @end deftypefun |
1847 | 1853 | ||
1848 | 1854 | ||