aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2019-06-08 14:25:03 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2019-06-09 12:14:28 +0300
commitd496504d6135613eb7960f28dd85dd13f8adc02e (patch)
tree62e1b1d6d5ec9def77214f967c592cf1ade0acdd /src/include
parent56827b9b7acb7927451c5b81e9637134cfb13e98 (diff)
downloadlibmicrohttpd-d496504d6135613eb7960f28dd85dd13f8adc02e.tar.gz
libmicrohttpd-d496504d6135613eb7960f28dd85dd13f8adc02e.zip
libmicrohttpd.h: Updated HTTP methods and headers
Diffstat (limited to 'src/include')
-rw-r--r--src/include/microhttpd.h39
1 files changed, 31 insertions, 8 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 117062e8..16588812 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -419,7 +419,7 @@ MHD_get_reason_phrase_for (unsigned int code);
419 * @defgroup headers HTTP headers 419 * @defgroup headers HTTP headers
420 * These are the standard headers found in HTTP requests and responses. 420 * These are the standard headers found in HTTP requests and responses.
421 * See: http://www.iana.org/assignments/message-headers/message-headers.xml 421 * See: http://www.iana.org/assignments/message-headers/message-headers.xml
422 * Registry Version 2017-01-27 422 * Registry export date: 2019-06-09
423 * @{ 423 * @{
424 */ 424 */
425 425
@@ -532,6 +532,8 @@ MHD_get_reason_phrase_for (unsigned int code);
532#define MHD_HTTP_HEADER_ACCEPT_FEATURES "Accept-Features" 532#define MHD_HTTP_HEADER_ACCEPT_FEATURES "Accept-Features"
533/* No category. RFC5789 */ 533/* No category. RFC5789 */
534#define MHD_HTTP_HEADER_ACCEPT_PATCH "Accept-Patch" 534#define MHD_HTTP_HEADER_ACCEPT_PATCH "Accept-Patch"
535/* Standard. https://www.w3.org/TR/ldp/ */
536#define MHD_HTTP_HEADER_ACCEPT_POST "Accept-Post"
535/* Standard. RFC7639, Section 2 */ 537/* Standard. RFC7639, Section 2 */
536#define MHD_HTTP_HEADER_ALPN "ALPN" 538#define MHD_HTTP_HEADER_ALPN "ALPN"
537/* Standard. RFC7838 */ 539/* Standard. RFC7838 */
@@ -556,8 +558,12 @@ MHD_get_reason_phrase_for (unsigned int code);
556#define MHD_HTTP_HEADER_C_PEP "C-PEP" 558#define MHD_HTTP_HEADER_C_PEP "C-PEP"
557/* No category. RFC4229 */ 559/* No category. RFC4229 */
558#define MHD_HTTP_HEADER_C_PEP_INFO "C-PEP-Info" 560#define MHD_HTTP_HEADER_C_PEP_INFO "C-PEP-Info"
561/* Standard. RFC8607, Section 5.1 */
562#define MHD_HTTP_HEADER_CAL_MANAGED_ID "Cal-Managed-ID"
559/* Standard. RFC7809, Section 7.1 */ 563/* Standard. RFC7809, Section 7.1 */
560#define MHD_HTTP_HEADER_CALDAV_TIMEZONES "CalDAV-Timezones" 564#define MHD_HTTP_HEADER_CALDAV_TIMEZONES "CalDAV-Timezones"
565/* Standard. RFC8586 */
566#define MHD_HTTP_HEADER_CDN_LOOP "CDN-Loop"
561/* Obsoleted. RFC2068; RFC2616 */ 567/* Obsoleted. RFC2068; RFC2616 */
562#define MHD_HTTP_HEADER_CONTENT_BASE "Content-Base" 568#define MHD_HTTP_HEADER_CONTENT_BASE "Content-Base"
563/* Standard. RFC6266 */ 569/* Standard. RFC6266 */
@@ -594,6 +600,10 @@ MHD_get_reason_phrase_for (unsigned int code);
594#define MHD_HTTP_HEADER_DIFFERENTIAL_ID "Differential-ID" 600#define MHD_HTTP_HEADER_DIFFERENTIAL_ID "Differential-ID"
595/* No category. RFC4229 */ 601/* No category. RFC4229 */
596#define MHD_HTTP_HEADER_DIGEST "Digest" 602#define MHD_HTTP_HEADER_DIGEST "Digest"
603/* Standard. RFC8470 */
604#define MHD_HTTP_HEADER_EARLY_DATA "Early-Data"
605/* Experimental. RFC-ietf-httpbis-expect-ct-08 */
606#define MHD_HTTP_HEADER_EXPECT_CT "Expect-CT"
597/* No category. RFC4229 */ 607/* No category. RFC4229 */
598#define MHD_HTTP_HEADER_EXT "Ext" 608#define MHD_HTTP_HEADER_EXT "Ext"
599/* Standard. RFC7239 */ 609/* Standard. RFC7239 */
@@ -610,11 +620,13 @@ MHD_get_reason_phrase_for (unsigned int code);
610#define MHD_HTTP_HEADER_IF "If" 620#define MHD_HTTP_HEADER_IF "If"
611/* Standard. RFC6638 */ 621/* Standard. RFC6638 */
612#define MHD_HTTP_HEADER_IF_SCHEDULE_TAG_MATCH "If-Schedule-Tag-Match" 622#define MHD_HTTP_HEADER_IF_SCHEDULE_TAG_MATCH "If-Schedule-Tag-Match"
623/* Standard. RFC8473 */
624#define MHD_HTTP_HEADER_INCLUDE_REFERRED_TOKEN_BINDING_ID "Include-Referred-Token-Binding-ID"
613/* No category. RFC4229 */ 625/* No category. RFC4229 */
614#define MHD_HTTP_HEADER_KEEP_ALIVE "Keep-Alive" 626#define MHD_HTTP_HEADER_KEEP_ALIVE "Keep-Alive"
615/* No category. RFC4229 */ 627/* No category. RFC4229 */
616#define MHD_HTTP_HEADER_LABEL "Label" 628#define MHD_HTTP_HEADER_LABEL "Label"
617/* No category. RFC5988 */ 629/* Standard. RFC8288 */
618#define MHD_HTTP_HEADER_LINK "Link" 630#define MHD_HTTP_HEADER_LINK "Link"
619/* Standard. RFC4918 */ 631/* Standard. RFC4918 */
620#define MHD_HTTP_HEADER_LOCK_TOKEN "Lock-Token" 632#define MHD_HTTP_HEADER_LOCK_TOKEN "Lock-Token"
@@ -634,6 +646,8 @@ MHD_get_reason_phrase_for (unsigned int code);
634#define MHD_HTTP_HEADER_ORDERING_TYPE "Ordering-Type" 646#define MHD_HTTP_HEADER_ORDERING_TYPE "Ordering-Type"
635/* Standard. RFC6454 */ 647/* Standard. RFC6454 */
636#define MHD_HTTP_HEADER_ORIGIN "Origin" 648#define MHD_HTTP_HEADER_ORIGIN "Origin"
649/* Standard. RFC-ietf-core-object-security-16, Section 11.1 */
650#define MHD_HTTP_HEADER_OSCORE "OSCORE"
637/* Standard. RFC4918 */ 651/* Standard. RFC4918 */
638#define MHD_HTTP_HEADER_OVERWRITE "Overwrite" 652#define MHD_HTTP_HEADER_OVERWRITE "Overwrite"
639/* No category. RFC4229 */ 653/* No category. RFC4229 */
@@ -674,12 +688,16 @@ MHD_get_reason_phrase_for (unsigned int code);
674#define MHD_HTTP_HEADER_PUBLIC_KEY_PINS_REPORT_ONLY "Public-Key-Pins-Report-Only" 688#define MHD_HTTP_HEADER_PUBLIC_KEY_PINS_REPORT_ONLY "Public-Key-Pins-Report-Only"
675/* No category. RFC4437 */ 689/* No category. RFC4437 */
676#define MHD_HTTP_HEADER_REDIRECT_REF "Redirect-Ref" 690#define MHD_HTTP_HEADER_REDIRECT_REF "Redirect-Ref"
691/* Standard. RFC8555, Section 6.5.1 */
692#define MHD_HTTP_HEADER_REPLAY_NONCE "Replay-Nonce"
677/* No category. RFC4229 */ 693/* No category. RFC4229 */
678#define MHD_HTTP_HEADER_SAFE "Safe" 694#define MHD_HTTP_HEADER_SAFE "Safe"
679/* Standard. RFC6638 */ 695/* Standard. RFC6638 */
680#define MHD_HTTP_HEADER_SCHEDULE_REPLY "Schedule-Reply" 696#define MHD_HTTP_HEADER_SCHEDULE_REPLY "Schedule-Reply"
681/* Standard. RFC6638 */ 697/* Standard. RFC6638 */
682#define MHD_HTTP_HEADER_SCHEDULE_TAG "Schedule-Tag" 698#define MHD_HTTP_HEADER_SCHEDULE_TAG "Schedule-Tag"
699/* Standard. RFC8473 */
700#define MHD_HTTP_HEADER_SEC_TOKEN_BINDING "Sec-Token-Binding"
683/* Standard. RFC6455 */ 701/* Standard. RFC6455 */
684#define MHD_HTTP_HEADER_SEC_WEBSOCKET_ACCEPT "Sec-WebSocket-Accept" 702#define MHD_HTTP_HEADER_SEC_WEBSOCKET_ACCEPT "Sec-WebSocket-Accept"
685/* Standard. RFC6455 */ 703/* Standard. RFC6455 */
@@ -706,6 +724,8 @@ MHD_get_reason_phrase_for (unsigned int code);
706#define MHD_HTTP_HEADER_STATUS_URI "Status-URI" 724#define MHD_HTTP_HEADER_STATUS_URI "Status-URI"
707/* Standard. RFC6797 */ 725/* Standard. RFC6797 */
708#define MHD_HTTP_HEADER_STRICT_TRANSPORT_SECURITY "Strict-Transport-Security" 726#define MHD_HTTP_HEADER_STRICT_TRANSPORT_SECURITY "Strict-Transport-Security"
727/* Informational. RFC8594 */
728#define MHD_HTTP_HEADER_SUNSET "Sunset"
709/* No category. RFC4229 */ 729/* No category. RFC4229 */
710#define MHD_HTTP_HEADER_SURROGATE_CAPABILITY "Surrogate-Capability" 730#define MHD_HTTP_HEADER_SURROGATE_CAPABILITY "Surrogate-Capability"
711/* No category. RFC4229 */ 731/* No category. RFC4229 */
@@ -726,6 +746,8 @@ MHD_get_reason_phrase_for (unsigned int code);
726#define MHD_HTTP_HEADER_VARIANT_VARY "Variant-Vary" 746#define MHD_HTTP_HEADER_VARIANT_VARY "Variant-Vary"
727/* No category. RFC4229 */ 747/* No category. RFC4229 */
728#define MHD_HTTP_HEADER_WANT_DIGEST "Want-Digest" 748#define MHD_HTTP_HEADER_WANT_DIGEST "Want-Digest"
749/* Standard. https://fetch.spec.whatwg.org/#x-content-type-options-header */
750#define MHD_HTTP_HEADER_X_CONTENT_TYPE_OPTIONS "X-Content-Type-Options"
729/* Informational. RFC7034 */ 751/* Informational. RFC7034 */
730#define MHD_HTTP_HEADER_X_FRAME_OPTIONS "X-Frame-Options" 752#define MHD_HTTP_HEADER_X_FRAME_OPTIONS "X-Frame-Options"
731 753
@@ -748,9 +770,10 @@ MHD_get_reason_phrase_for (unsigned int code);
748 * @defgroup methods HTTP methods 770 * @defgroup methods HTTP methods
749 * HTTP methods (as strings). 771 * HTTP methods (as strings).
750 * See: http://www.iana.org/assignments/http-methods/http-methods.xml 772 * See: http://www.iana.org/assignments/http-methods/http-methods.xml
751 * Registry Version 2015-05-19 773 * Registry export date: 2019-06-09
752 * @{ 774 * @{
753 */ 775 */
776
754/* Main HTTP methods. */ 777/* Main HTTP methods. */
755/* Not safe. Not idempotent. RFC7231, Section 4.3.6. */ 778/* Not safe. Not idempotent. RFC7231, Section 4.3.6. */
756#define MHD_HTTP_METHOD_CONNECT "CONNECT" 779#define MHD_HTTP_METHOD_CONNECT "CONNECT"
@@ -792,9 +815,9 @@ MHD_get_reason_phrase_for (unsigned int code);
792#define MHD_HTTP_METHOD_MERGE "MERGE" 815#define MHD_HTTP_METHOD_MERGE "MERGE"
793/* Not safe. Idempotent. RFC3253, Section 13.5. */ 816/* Not safe. Idempotent. RFC3253, Section 13.5. */
794#define MHD_HTTP_METHOD_MKACTIVITY "MKACTIVITY" 817#define MHD_HTTP_METHOD_MKACTIVITY "MKACTIVITY"
795/* Not safe. Idempotent. RFC4791, Section 5.3.1. */ 818/* Not safe. Idempotent. RFC4791, Section 5.3.1; RFC8144, Section 2.3. */
796#define MHD_HTTP_METHOD_MKCALENDAR "MKCALENDAR" 819#define MHD_HTTP_METHOD_MKCALENDAR "MKCALENDAR"
797/* Not safe. Idempotent. RFC4918, Section 9.3. */ 820/* Not safe. Idempotent. RFC4918, Section 9.3; RFC5689, Section 3; RFC8144, Section 2.3. */
798#define MHD_HTTP_METHOD_MKCOL "MKCOL" 821#define MHD_HTTP_METHOD_MKCOL "MKCOL"
799/* Not safe. Idempotent. RFC4437, Section 6. */ 822/* Not safe. Idempotent. RFC4437, Section 6. */
800#define MHD_HTTP_METHOD_MKREDIRECTREF "MKREDIRECTREF" 823#define MHD_HTTP_METHOD_MKREDIRECTREF "MKREDIRECTREF"
@@ -808,13 +831,13 @@ MHD_get_reason_phrase_for (unsigned int code);
808#define MHD_HTTP_METHOD_PATCH "PATCH" 831#define MHD_HTTP_METHOD_PATCH "PATCH"
809/* Safe. Idempotent. RFC7540, Section 3.5. */ 832/* Safe. Idempotent. RFC7540, Section 3.5. */
810#define MHD_HTTP_METHOD_PRI "PRI" 833#define MHD_HTTP_METHOD_PRI "PRI"
811/* Safe. Idempotent. RFC4918, Section 9.1. */ 834/* Safe. Idempotent. RFC4918, Section 9.1; RFC8144, Section 2.1. */
812#define MHD_HTTP_METHOD_PROPFIND "PROPFIND" 835#define MHD_HTTP_METHOD_PROPFIND "PROPFIND"
813/* Not safe. Idempotent. RFC4918, Section 9.2. */ 836/* Not safe. Idempotent. RFC4918, Section 9.2; RFC8144, Section 2.2. */
814#define MHD_HTTP_METHOD_PROPPATCH "PROPPATCH" 837#define MHD_HTTP_METHOD_PROPPATCH "PROPPATCH"
815/* Not safe. Idempotent. RFC5842, Section 6. */ 838/* Not safe. Idempotent. RFC5842, Section 6. */
816#define MHD_HTTP_METHOD_REBIND "REBIND" 839#define MHD_HTTP_METHOD_REBIND "REBIND"
817/* Safe. Idempotent. RFC3253, Section 3.6. */ 840/* Safe. Idempotent. RFC3253, Section 3.6; RFC8144, Section 2.1. */
818#define MHD_HTTP_METHOD_REPORT "REPORT" 841#define MHD_HTTP_METHOD_REPORT "REPORT"
819/* Safe. Idempotent. RFC5323, Section 2. */ 842/* Safe. Idempotent. RFC5323, Section 2. */
820#define MHD_HTTP_METHOD_SEARCH "SEARCH" 843#define MHD_HTTP_METHOD_SEARCH "SEARCH"