libmicrohttpd2

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

commit b9278b01be0bc4ee6b9f1e8c269c6169b4a2ecb5
parent 35ba812f34f7d8ff4069436dcaa29c027c0b414a
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date:   Sun,  2 Nov 2025 19:20:52 +0100

microhttpd2.h: added new status codes

Diffstat:
Msrc/include/microhttpd2.h | 12++++++++++++
Msrc/include/microhttpd2_preamble.h.in | 12++++++++++++
2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/src/include/microhttpd2.h b/src/include/microhttpd2.h @@ -556,6 +556,12 @@ enum MHD_FIXED_ENUM_MHD_SET_ MHD_StatusCode MHD_SC_POOL_MEM_ALLOC_FAILURE = 30083 , /** + * We failed to allocate memory for the HTTP/2 connection's resources. + * (May be transient.) + */ + MHD_SC_H2_CONN_MEM_ALLOC_FAILURE = 30084 + , + /** * We failed to forward data from a Web socket to the * application to the remote side due to the socket * being closed prematurely. (May be transient.) @@ -828,6 +834,12 @@ enum MHD_FIXED_ENUM_MHD_SET_ MHD_StatusCode */ MHD_SC_CONNECTION_BROKEN = 42061 , + /** + * ALPN in TLS connection selected HTTP/2 (as advertised by the client), + * but the client did not send a valid HTTP/2 connection preface. + */ + MHD_SC_ALPN_H2_NO_PREFACE = 43001 + , /* 50000-level errors are because of an error internal to the MHD logic, possibly including our interaction diff --git a/src/include/microhttpd2_preamble.h.in b/src/include/microhttpd2_preamble.h.in @@ -556,6 +556,12 @@ enum MHD_FIXED_ENUM_MHD_SET_ MHD_StatusCode MHD_SC_POOL_MEM_ALLOC_FAILURE = 30083 , /** + * We failed to allocate memory for the HTTP/2 connection's resources. + * (May be transient.) + */ + MHD_SC_H2_CONN_MEM_ALLOC_FAILURE = 30084 + , + /** * We failed to forward data from a Web socket to the * application to the remote side due to the socket * being closed prematurely. (May be transient.) @@ -828,6 +834,12 @@ enum MHD_FIXED_ENUM_MHD_SET_ MHD_StatusCode */ MHD_SC_CONNECTION_BROKEN = 42061 , + /** + * ALPN in TLS connection selected HTTP/2 (as advertised by the client), + * but the client did not send a valid HTTP/2 connection preface. + */ + MHD_SC_ALPN_H2_NO_PREFACE = 43001 + , /* 50000-level errors are because of an error internal to the MHD logic, possibly including our interaction