libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 2abe788d8ab1426b03bdb1d27ca34c60b0a37769
parent d7709c55803364cd4573bc57e4fc3c95064ea3cd
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed, 10 Jun 2020 21:58:53 +0200

fix manual entry for MHD_lookup_connection_value

Diffstat:
Mdoc/libmicrohttpd.texi | 18++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi @@ -1837,12 +1837,18 @@ Get a particular header value. If multiple values match the @var{kind}, return one of them (the ``first'', whatever that means). @var{key} must reference a zero-terminated ASCII-coded string representing the header to look for: it is compared against the -headers using @code{strcasecmp()}, so case is ignored. A value of -@code{NULL} for @var{key} can be used to lookup 'trailing' values without a -key, for example if a URI is of the form -``http://example.com/?trailer'', a @var{key} of @code{NULL} can be used to -access ``tailer" The function returns @code{NULL} if no matching item -was found. +headers using (basically) @code{strcasecmp()}, so case is ignored. +@end deftypefun + +@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) +Get a particular header value. If multiple values match the +@var{kind}, return one of them (the ``first'', whatever that means). +@var{key} must reference an ASCII-coded string +representing the header to look for: it is compared against the +headers using (basically) @code{strncasecmp()}, so case is ignored. +The @var{value_ptr} is set to the address of the value found, +and @var{value_size_ptr} is set to the number of bytes in the +value. @end deftypefun