libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

commit 116ed97689509262adcb464302a382cbd37290a9
parent 416b828bb0390245f33e73545b6155e3ed830db1
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 21 Dec 2025 15:56:27 +0100

remove MHD_predef_header_to_string as agreed with EG

Diffstat:
Mdoc/manual/responses.inc | 19+------------------
Msrc/include/microhttpd2_preamble.h.in | 10----------
2 files changed, 1 insertion(+), 28 deletions(-)

diff --git a/doc/manual/responses.inc b/doc/manual/responses.inc @@ -14,7 +14,7 @@ a body and possibly HTTP footers. @cindex action -In the simplest case we allocate a new @code{struct MHD_Response} +In the simplest case we allocate a new @code{struct MHD_Response} for each request, use it to create an action and it is (automatically) destroyed: @@ -815,23 +815,6 @@ header packing (HPACK). @end table @end deftp -MHD provides a convenience function to map @code{enum MHD_PredefinedHeader} -values to the human readable names: - -@deftypefun {const struct MHD_String *} MHD_predef_header_to_string (enum MHD_PredefinedHeader stk) -Get textual representation of the predefined header. - -@table @var -@item stk -code of the predefined header; -@end table - -@c FIXME: shouldn't it then be a StringNullable!??!? -Returns a pointer to the text version, or @code{NULL} if -@var{stk} is not known. -@end deftypefun - - @node libmicrohttpd2-response options @section Setting response options @cindex option diff --git a/src/include/microhttpd2_preamble.h.in b/src/include/microhttpd2_preamble.h.in @@ -2572,16 +2572,6 @@ enum MHD_PredefinedHeader MHD_PREDEF_ACCEPT_LANGUAGE = 17 }; -/** - * Get text version of the predefined header. - * @param stk the code of the predefined header - * @return the pointer to the text version, - * NULL if method is MHD_HTTP_METHOD_OTHER - * or not known. - */ -MHD_EXTERN_ const struct MHD_String * -MHD_predef_header_to_string (enum MHD_PredefinedHeader stk) -MHD_FN_CONST_; /** @} */ /* end of group headers */