commit 91a0d62efd3669163481e5a09195746471ccfa59 parent 26288b110134eea81dc7fd5d158e64bb67692753 Author: Evgeny Grin (Karlson2k) <k2k@narod.ru> Date: Sun, 20 Jun 2021 16:13:41 +0300 internal.h: reordered items Diffstat:
| M | src/microhttpd/internal.h | | | 30 | +++++++++++++++--------------- |
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h @@ -779,6 +779,21 @@ enum MHD_HTTP_Version }; /** + * Returns boolean 'true' if HTTP version is supported by MHD + */ +#define MHD_IS_HTTP_VER_SUPPORTED(ver) (MHD_HTTP_VER_1_0 <= (ver) && \ + MHD_HTTP_VER_1_2__1_9 >= (ver)) + +/** + * Protocol should be used as HTTP/1.1 protocol. + * + * See the last paragraph of + * https://datatracker.ietf.org/doc/html/rfc7230#section-2.6 + */ +#define MHD_IS_HTTP_VER_1_1_COMPAT(ver) (MHD_HTTP_VER_1_1 == (ver) || \ + MHD_HTTP_VER_1_2__1_9 == (ver)) + +/** * The HTTP method. * * Only primary methods (specified in RFC7231) defined here. @@ -828,21 +843,6 @@ enum MHD_HTTP_Method }; /** - * Returns boolean 'true' if HTTP version is supported by MHD - */ -#define MHD_IS_HTTP_VER_SUPPORTED(ver) (MHD_HTTP_VER_1_0 <= (ver) && \ - MHD_HTTP_VER_1_2__1_9 >= (ver)) - -/** - * Protocol should be used as HTTP/1.1 protocol. - * - * See the last paragraph of - * https://datatracker.ietf.org/doc/html/rfc7230#section-2.6 - */ -#define MHD_IS_HTTP_VER_1_1_COMPAT(ver) (MHD_HTTP_VER_1_1 == (ver) || \ - MHD_HTTP_VER_1_2__1_9 == (ver)) - -/** * State kept for each HTTP request. */ struct MHD_Connection