diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-06-20 16:13:41 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-06-20 16:13:41 +0300 |
commit | 91a0d62efd3669163481e5a09195746471ccfa59 (patch) | |
tree | e7e51085d13f364839b3061fb70d2aeecef55a4c | |
parent | 26288b110134eea81dc7fd5d158e64bb67692753 (diff) | |
download | libmicrohttpd-91a0d62efd3669163481e5a09195746471ccfa59.tar.gz libmicrohttpd-91a0d62efd3669163481e5a09195746471ccfa59.zip |
internal.h: reordered items
-rw-r--r-- | src/microhttpd/internal.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h index 460cbf1b..2338c0ee 100644 --- a/src/microhttpd/internal.h +++ b/src/microhttpd/internal.h | |||
@@ -779,6 +779,21 @@ enum MHD_HTTP_Version | |||
779 | }; | 779 | }; |
780 | 780 | ||
781 | /** | 781 | /** |
782 | * Returns boolean 'true' if HTTP version is supported by MHD | ||
783 | */ | ||
784 | #define MHD_IS_HTTP_VER_SUPPORTED(ver) (MHD_HTTP_VER_1_0 <= (ver) && \ | ||
785 | MHD_HTTP_VER_1_2__1_9 >= (ver)) | ||
786 | |||
787 | /** | ||
788 | * Protocol should be used as HTTP/1.1 protocol. | ||
789 | * | ||
790 | * See the last paragraph of | ||
791 | * https://datatracker.ietf.org/doc/html/rfc7230#section-2.6 | ||
792 | */ | ||
793 | #define MHD_IS_HTTP_VER_1_1_COMPAT(ver) (MHD_HTTP_VER_1_1 == (ver) || \ | ||
794 | MHD_HTTP_VER_1_2__1_9 == (ver)) | ||
795 | |||
796 | /** | ||
782 | * The HTTP method. | 797 | * The HTTP method. |
783 | * | 798 | * |
784 | * Only primary methods (specified in RFC7231) defined here. | 799 | * Only primary methods (specified in RFC7231) defined here. |
@@ -828,21 +843,6 @@ enum MHD_HTTP_Method | |||
828 | }; | 843 | }; |
829 | 844 | ||
830 | /** | 845 | /** |
831 | * Returns boolean 'true' if HTTP version is supported by MHD | ||
832 | */ | ||
833 | #define MHD_IS_HTTP_VER_SUPPORTED(ver) (MHD_HTTP_VER_1_0 <= (ver) && \ | ||
834 | MHD_HTTP_VER_1_2__1_9 >= (ver)) | ||
835 | |||
836 | /** | ||
837 | * Protocol should be used as HTTP/1.1 protocol. | ||
838 | * | ||
839 | * See the last paragraph of | ||
840 | * https://datatracker.ietf.org/doc/html/rfc7230#section-2.6 | ||
841 | */ | ||
842 | #define MHD_IS_HTTP_VER_1_1_COMPAT(ver) (MHD_HTTP_VER_1_1 == (ver) || \ | ||
843 | MHD_HTTP_VER_1_2__1_9 == (ver)) | ||
844 | |||
845 | /** | ||
846 | * State kept for each HTTP request. | 846 | * State kept for each HTTP request. |
847 | */ | 847 | */ |
848 | struct MHD_Connection | 848 | struct MHD_Connection |