diff options
Diffstat (limited to 'doc/libmicrohttpd.texi')
-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 | ||