diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-02-26 21:12:36 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-02-26 21:12:36 +0300 |
commit | 3211f225fa437e1137ff132ae221565c469b4ae4 (patch) | |
tree | c5e3be1603209f542455a55d38172f19e0960c1f /src/include/microhttpd.h | |
parent | dd95c307b24e9021be07eb6946e063f104731b2e (diff) | |
download | libmicrohttpd-3211f225fa437e1137ff132ae221565c469b4ae4.tar.gz libmicrohttpd-3211f225fa437e1137ff132ae221565c469b4ae4.zip |
microhttpd.h: updated HTTP methods
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r-- | src/include/microhttpd.h | 78 |
1 files changed, 76 insertions, 2 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 7dee6921..5fd4c68a 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -734,19 +734,93 @@ MHD_get_reason_phrase_for (unsigned int code); | |||
734 | 734 | ||
735 | /** | 735 | /** |
736 | * @defgroup methods HTTP methods | 736 | * @defgroup methods HTTP methods |
737 | * Standard HTTP methods (as strings). | 737 | * HTTP methods (as strings). |
738 | * See: http://www.iana.org/assignments/http-methods/http-methods.xml | ||
739 | * Registry Version 2015-05-19 | ||
738 | * @{ | 740 | * @{ |
739 | */ | 741 | */ |
742 | /* Main HTTP methods. */ | ||
743 | /* Not safe. Not idempotent. RFC7231, Section 4.3.6. */ | ||
740 | #define MHD_HTTP_METHOD_CONNECT "CONNECT" | 744 | #define MHD_HTTP_METHOD_CONNECT "CONNECT" |
745 | /* Not safe. Idempotent. RFC7231, Section 4.3.5. */ | ||
741 | #define MHD_HTTP_METHOD_DELETE "DELETE" | 746 | #define MHD_HTTP_METHOD_DELETE "DELETE" |
747 | /* Safe. Idempotent. RFC7231, Section 4.3.1. */ | ||
742 | #define MHD_HTTP_METHOD_GET "GET" | 748 | #define MHD_HTTP_METHOD_GET "GET" |
749 | /* Safe. Idempotent. RFC7231, Section 4.3.2. */ | ||
743 | #define MHD_HTTP_METHOD_HEAD "HEAD" | 750 | #define MHD_HTTP_METHOD_HEAD "HEAD" |
751 | /* Safe. Idempotent. RFC7231, Section 4.3.7. */ | ||
744 | #define MHD_HTTP_METHOD_OPTIONS "OPTIONS" | 752 | #define MHD_HTTP_METHOD_OPTIONS "OPTIONS" |
753 | /* Not safe. Not idempotent. RFC7231, Section 4.3.3. */ | ||
745 | #define MHD_HTTP_METHOD_POST "POST" | 754 | #define MHD_HTTP_METHOD_POST "POST" |
755 | /* Not safe. Idempotent. RFC7231, Section 4.3.4. */ | ||
746 | #define MHD_HTTP_METHOD_PUT "PUT" | 756 | #define MHD_HTTP_METHOD_PUT "PUT" |
747 | #define MHD_HTTP_METHOD_PATCH "PATCH" | 757 | /* Safe. Idempotent. RFC7231, Section 4.3.8. */ |
748 | #define MHD_HTTP_METHOD_TRACE "TRACE" | 758 | #define MHD_HTTP_METHOD_TRACE "TRACE" |
749 | 759 | ||
760 | /* Additional HTTP methods. */ | ||
761 | /* Not safe. Idempotent. RFC3744, Section 8.1. */ | ||
762 | #define MHD_HTTP_METHOD_ACL "ACL" | ||
763 | /* Not safe. Idempotent. RFC3253, Section 12.6. */ | ||
764 | #define MHD_HTTP_METHOD_BASELINE_CONTROL "BASELINE-CONTROL" | ||
765 | /* Not safe. Idempotent. RFC5842, Section 4. */ | ||
766 | #define MHD_HTTP_METHOD_BIND "BIND" | ||
767 | /* Not safe. Idempotent. RFC3253, Section 4.4, Section 9.4. */ | ||
768 | #define MHD_HTTP_METHOD_CHECKIN "CHECKIN" | ||
769 | /* Not safe. Idempotent. RFC3253, Section 4.3, Section 8.8. */ | ||
770 | #define MHD_HTTP_METHOD_CHECKOUT "CHECKOUT" | ||
771 | /* Not safe. Idempotent. RFC4918, Section 9.8. */ | ||
772 | #define MHD_HTTP_METHOD_COPY "COPY" | ||
773 | /* Not safe. Idempotent. RFC3253, Section 8.2. */ | ||
774 | #define MHD_HTTP_METHOD_LABEL "LABEL" | ||
775 | /* Not safe. Idempotent. RFC2068, Section 19.6.1.2. */ | ||
776 | #define MHD_HTTP_METHOD_LINK "LINK" | ||
777 | /* Not safe. Not idempotent. RFC4918, Section 9.10. */ | ||
778 | #define MHD_HTTP_METHOD_LOCK "LOCK" | ||
779 | /* Not safe. Idempotent. RFC3253, Section 11.2. */ | ||
780 | #define MHD_HTTP_METHOD_MERGE "MERGE" | ||
781 | /* Not safe. Idempotent. RFC3253, Section 13.5. */ | ||
782 | #define MHD_HTTP_METHOD_MKACTIVITY "MKACTIVITY" | ||
783 | /* Not safe. Idempotent. RFC4791, Section 5.3.1. */ | ||
784 | #define MHD_HTTP_METHOD_MKCALENDAR "MKCALENDAR" | ||
785 | /* Not safe. Idempotent. RFC4918, Section 9.3. */ | ||
786 | #define MHD_HTTP_METHOD_MKCOL "MKCOL" | ||
787 | /* Not safe. Idempotent. RFC4437, Section 6. */ | ||
788 | #define MHD_HTTP_METHOD_MKREDIRECTREF "MKREDIRECTREF" | ||
789 | /* Not safe. Idempotent. RFC3253, Section 6.3. */ | ||
790 | #define MHD_HTTP_METHOD_MKWORKSPACE "MKWORKSPACE" | ||
791 | /* Not safe. Idempotent. RFC4918, Section 9.9. */ | ||
792 | #define MHD_HTTP_METHOD_MOVE "MOVE" | ||
793 | /* Not safe. Idempotent. RFC3648, Section 7. */ | ||
794 | #define MHD_HTTP_METHOD_ORDERPATCH "ORDERPATCH" | ||
795 | /* Not safe. Not idempotent. RFC5789, Section 2. */ | ||
796 | #define MHD_HTTP_METHOD_PATCH "PATCH" | ||
797 | /* Safe. Idempotent. RFC7540, Section 3.5. */ | ||
798 | #define MHD_HTTP_METHOD_PRI "PRI" | ||
799 | /* Safe. Idempotent. RFC4918, Section 9.1. */ | ||
800 | #define MHD_HTTP_METHOD_PROPFIND "PROPFIND" | ||
801 | /* Not safe. Idempotent. RFC4918, Section 9.2. */ | ||
802 | #define MHD_HTTP_METHOD_PROPPATCH "PROPPATCH" | ||
803 | /* Not safe. Idempotent. RFC5842, Section 6. */ | ||
804 | #define MHD_HTTP_METHOD_REBIND "REBIND" | ||
805 | /* Safe. Idempotent. RFC3253, Section 3.6. */ | ||
806 | #define MHD_HTTP_METHOD_REPORT "REPORT" | ||
807 | /* Safe. Idempotent. RFC5323, Section 2. */ | ||
808 | #define MHD_HTTP_METHOD_SEARCH "SEARCH" | ||
809 | /* Not safe. Idempotent. RFC5842, Section 5. */ | ||
810 | #define MHD_HTTP_METHOD_UNBIND "UNBIND" | ||
811 | /* Not safe. Idempotent. RFC3253, Section 4.5. */ | ||
812 | #define MHD_HTTP_METHOD_UNCHECKOUT "UNCHECKOUT" | ||
813 | /* Not safe. Idempotent. RFC2068, Section 19.6.1.3. */ | ||
814 | #define MHD_HTTP_METHOD_UNLINK "UNLINK" | ||
815 | /* Not safe. Idempotent. RFC4918, Section 9.11. */ | ||
816 | #define MHD_HTTP_METHOD_UNLOCK "UNLOCK" | ||
817 | /* Not safe. Idempotent. RFC3253, Section 7.1. */ | ||
818 | #define MHD_HTTP_METHOD_UPDATE "UPDATE" | ||
819 | /* Not safe. Idempotent. RFC4437, Section 7. */ | ||
820 | #define MHD_HTTP_METHOD_UPDATEREDIRECTREF "UPDATEREDIRECTREF" | ||
821 | /* Not safe. Idempotent. RFC3253, Section 3.5. */ | ||
822 | #define MHD_HTTP_METHOD_VERSION_CONTROL "VERSION-CONTROL" | ||
823 | |||
750 | /** @} */ /* end of group methods */ | 824 | /** @} */ /* end of group methods */ |
751 | 825 | ||
752 | /** | 826 | /** |