diff options
-rwxr-xr-x | contrib/gen_http_headers_insert.sh | 129 | ||||
-rw-r--r-- | src/include/microhttpd.h | 639 |
2 files changed, 471 insertions, 297 deletions
diff --git a/contrib/gen_http_headers_insert.sh b/contrib/gen_http_headers_insert.sh index 6fce2809..d373045e 100755 --- a/contrib/gen_http_headers_insert.sh +++ b/contrib/gen_http_headers_insert.sh | |||
@@ -4,59 +4,130 @@ | |||
4 | # Generate header insert for HTTP headers | 4 | # Generate header insert for HTTP headers |
5 | # | 5 | # |
6 | 6 | ||
7 | # Copyright (c) 2015-2019 Karlson2k (Evgeny Grin) <k2k@yandex.ru> | 7 | # Copyright (c) 2015-2021 Karlson2k (Evgeny Grin) <k2k@yandex.ru> |
8 | # | 8 | # |
9 | # Copying and distribution of this file, with or without modification, are | 9 | # Copying and distribution of this file, with or without modification, are |
10 | # permitted in any medium without royalty provided the copyright notice | 10 | # permitted in any medium without royalty provided the copyright notice |
11 | # and this notice are preserved. This file is offered as-is, without any | 11 | # and this notice are preserved. This file is offered as-is, without any |
12 | # warranty. | 12 | # warranty. |
13 | 13 | ||
14 | wget -nv http://www.iana.org/assignments/message-headers/perm-headers.csv -O perm-headers.csv || exit | 14 | wget -nv https://www.iana.org/assignments/http-fields/field-names.csv -O perm-headers.csv || exit |
15 | echo Generating... | 15 | echo Generating... |
16 | echo '/** | 16 | echo '/** |
17 | * @defgroup headers HTTP headers | 17 | * @defgroup headers HTTP headers |
18 | * These are the standard headers found in HTTP requests and responses. | 18 | * These are the standard headers found in HTTP requests and responses. |
19 | * See: http://www.iana.org/assignments/message-headers/message-headers.xml | 19 | * See: https://www.iana.org/assignments/http-fields/http-fields.xhtml |
20 | * Registry export date: '$(date -u +%Y-%m-%d)' | 20 | * Registry export date: '"$(date -u +%Y-%m-%d)"' |
21 | * @{ | 21 | * @{ |
22 | */ | 22 | */ |
23 | 23 | ||
24 | /* Main HTTP headers. */' > header_insert_headers.h && \ | 24 | /* Main HTTP headers. */' > header_insert_headers.h && \ |
25 | gawk -e 'BEGIN {FPAT = "([^,]*)|(\"[^\"]+\")"} | 25 | gawk -e 'BEGIN {FPAT = "([^,]*)|(\"[^\"]+\")"} |
26 | { | 26 | FNR > 1 { |
27 | if ($3 == "http") { | 27 | gsub(/^\[|^"\[|\]"$|\]$/, "", $4) |
28 | gsub(/^\[|^"\[|\]"$|\]$/, "", $5) | 28 | field_name = $1 |
29 | rfc_num = substr($5, 4, 4) | 29 | status = $3 |
30 | if (rfc_num >= 7230 && rfc_num <= 7235) | 30 | ref = $4 |
31 | comment = $5 | ||
32 | if ("RFC-ietf-httpbis" == substr(ref, 1, 16)) | ||
31 | { | 33 | { |
32 | gsub(/\]\[/, "; ", $5) | 34 | gsub(/\]\[/, "; ", ref) |
33 | if (length($4) == 0) | 35 | if (length(status) == 0) |
34 | { $4 = "No category" } | 36 | { status = "No category" } |
35 | else | 37 | else |
36 | { sub(/^./, toupper(substr($4, 1, 1)), $4) } | 38 | { sub(/^./, toupper(substr(status, 1, 1)), status) } |
37 | print "/* " sprintf("%-14.14s", $4 ".") " " $5 " */" | 39 | field_name = gensub(/\*/, "ASTERISK", "g", field_name) |
38 | print "#define MHD_HTTP_HEADER_" toupper(gensub(/-/, "_", "g", $1)) " \""$1"\"" | 40 | field_name = gensub(/[^a-zA-Z0-9_]/, "_", "g", field_name) |
41 | printf ("/* %-14.14s %s */\n", status ".", ref) | ||
42 | printf ("#define MHD_HTTP_HEADER_%-12s \"%s\"\n", toupper(field_name), $1) | ||
39 | } | 43 | } |
40 | } | ||
41 | }' perm-headers.csv >> header_insert_headers.h && \ | 44 | }' perm-headers.csv >> header_insert_headers.h && \ |
42 | echo ' | 45 | echo ' |
43 | /* Additional HTTP headers. */' >> header_insert_headers.h && \ | 46 | /* Additional HTTP headers. */' >> header_insert_headers.h && \ |
44 | gawk -e 'BEGIN {FPAT = "([^,]*)|(\"[^\"]+\")"} | 47 | gawk -e 'BEGIN {FPAT = "([^,]*)|(\"[^\"]+\")"} |
45 | { | 48 | FNR > 1 { |
46 | if ($3 == "http") { | 49 | gsub(/^\[|^"\[|\]"$|\]$/, "", $4) |
47 | gsub(/^\[|^"\[|\]"$|\]$/, "", $5) | 50 | field_name = $1 |
48 | rfc_num = substr($5, 4, 4) | 51 | status = $3 |
49 | if (!(rfc_num >= 7230 && rfc_num <= 7235)) | 52 | ref = $4 |
53 | comment = $5 | ||
54 | if ("RFC-ietf-httpbis" != substr(ref, 1, 16) && status == "permanent") | ||
50 | { | 55 | { |
51 | gsub(/\]\[/, "; ", $5) | 56 | gsub(/\]\[/, "; ", ref) |
52 | if (length($4) == 0) | 57 | sub(/^./, toupper(substr(status, 1, 1)), status) |
53 | { $4 = "No category" } | 58 | field_name = gensub(/\*/, "ASTERISK", "g", field_name) |
54 | else | 59 | field_name = gensub(/[^a-zA-Z0-9_]/, "_", "g", field_name) |
55 | { sub(/^./, toupper(substr($4, 1, 1)), $4) } | 60 | printf ("/* %-14.14s %s */\n", status ".", ref) |
56 | print "/* " sprintf("%-14.14s", $4 ".") " " $5 " */" | 61 | printf ("#define MHD_HTTP_HEADER_%-12s \"%s\"\n", toupper(field_name), $1) |
57 | print "#define MHD_HTTP_HEADER_" toupper(gensub(/-/, "_", "g", $1)) " \""$1"\"" | 62 | } |
63 | }' perm-headers.csv >> header_insert_headers.h && \ | ||
64 | gawk -e 'BEGIN {FPAT = "([^,]*)|(\"[^\"]+\")"} | ||
65 | FNR > 1 { | ||
66 | gsub(/^\[|^"\[|\]"$|\]$/, "", $4) | ||
67 | field_name = $1 | ||
68 | status = $3 | ||
69 | ref = $4 | ||
70 | comment = $5 | ||
71 | if ("RFC-ietf-httpbis" != substr(ref, 1, 16) && status == "provisional") | ||
72 | { | ||
73 | gsub(/\]\[/, "; ", ref) | ||
74 | sub(/^./, toupper(substr(status, 1, 1)), status) | ||
75 | field_name = gensub(/\*/, "ASTERISK", "g", field_name) | ||
76 | field_name = gensub(/[^a-zA-Z0-9_]/, "_", "g", field_name) | ||
77 | printf ("/* %-14.14s %s */\n", status ".", ref) | ||
78 | printf ("#define MHD_HTTP_HEADER_%-12s \"%s\"\n", toupper(field_name), $1) | ||
79 | } | ||
80 | }' perm-headers.csv >> header_insert_headers.h && \ | ||
81 | gawk -e 'BEGIN {FPAT = "([^,]*)|(\"[^\"]+\")"} | ||
82 | FNR > 1 { | ||
83 | gsub(/^\[|^"\[|\]"$|\]$/, "", $4) | ||
84 | field_name = $1 | ||
85 | status = $3 | ||
86 | ref = $4 | ||
87 | comment = $5 | ||
88 | if ("RFC-ietf-httpbis" != substr(ref, 1, 16) && length(status) == 0) | ||
89 | { | ||
90 | gsub(/\]\[/, "; ", ref) | ||
91 | status = "No category" | ||
92 | field_name = gensub(/\*/, "ASTERISK", "g", field_name) | ||
93 | field_name = gensub(/[^a-zA-Z0-9_]/, "_", "g", field_name) | ||
94 | printf ("/* %-14.14s %s */\n", status ".", ref) | ||
95 | printf ("#define MHD_HTTP_HEADER_%-12s \"%s\"\n", toupper(field_name), $1) | ||
96 | } | ||
97 | }' perm-headers.csv >> header_insert_headers.h && \ | ||
98 | gawk -e 'BEGIN {FPAT = "([^,]*)|(\"[^\"]+\")"} | ||
99 | FNR > 1 { | ||
100 | gsub(/^\[|^"\[|\]"$|\]$/, "", $4) | ||
101 | field_name = $1 | ||
102 | status = $3 | ||
103 | ref = $4 | ||
104 | comment = $5 | ||
105 | if ("RFC-ietf-httpbis" != substr(ref, 1, 16) && status == "deprecated") | ||
106 | { | ||
107 | gsub(/\]\[/, "; ", ref) | ||
108 | sub(/^./, toupper(substr(status, 1, 1)), status) | ||
109 | field_name = gensub(/\*/, "ASTERISK", "g", field_name) | ||
110 | field_name = gensub(/[^a-zA-Z0-9_]/, "_", "g", field_name) | ||
111 | printf ("/* %-14.14s %s */\n", status ".", ref) | ||
112 | printf ("#define MHD_HTTP_HEADER_%-12s \"%s\"\n", toupper(field_name), $1) | ||
113 | } | ||
114 | }' perm-headers.csv >> header_insert_headers.h && \ | ||
115 | gawk -e 'BEGIN {FPAT = "([^,]*)|(\"[^\"]+\")"} | ||
116 | FNR > 1 { | ||
117 | gsub(/^\[|^"\[|\]"$|\]$/, "", $4) | ||
118 | field_name = $1 | ||
119 | status = $3 | ||
120 | ref = $4 | ||
121 | comment = $5 | ||
122 | if ("RFC-ietf-httpbis" != substr(ref, 1, 16) && status == "obsoleted") | ||
123 | { | ||
124 | gsub(/\]\[/, "; ", ref) | ||
125 | sub(/^./, toupper(substr(status, 1, 1)), status) | ||
126 | field_name = gensub(/\*/, "ASTERISK", "g", field_name) | ||
127 | field_name = gensub(/[^a-zA-Z0-9_]/, "_", "g", field_name) | ||
128 | printf ("/* %-14.14s %s */\n", status ".", ref) | ||
129 | printf ("#define MHD_HTTP_HEADER_%-12s \"%s\"\n", toupper(field_name), $1) | ||
58 | } | 130 | } |
59 | } | ||
60 | }' perm-headers.csv >> header_insert_headers.h && \ | 131 | }' perm-headers.csv >> header_insert_headers.h && \ |
61 | echo OK && \ | 132 | echo OK && \ |
62 | rm perm-headers.csv || exit | 133 | rm perm-headers.csv || exit |
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index f4b1dda8..39d5013f 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -573,354 +573,457 @@ MHD_get_reason_phrase_len_for (unsigned int code); | |||
573 | /** | 573 | /** |
574 | * @defgroup headers HTTP headers | 574 | * @defgroup headers HTTP headers |
575 | * These are the standard headers found in HTTP requests and responses. | 575 | * These are the standard headers found in HTTP requests and responses. |
576 | * See: http://www.iana.org/assignments/message-headers/message-headers.xml | 576 | * See: https://www.iana.org/assignments/http-fields/http-fields.xhtml |
577 | * Registry export date: 2020-09-20 | 577 | * Registry export date: 2021-10-30 |
578 | * @{ | 578 | * @{ |
579 | */ | 579 | */ |
580 | 580 | ||
581 | /* Main HTTP headers. */ | 581 | /* Main HTTP headers. */ |
582 | /* Standard. RFC7231, Section 5.3.2 */ | 582 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 12.5.1 */ |
583 | #define MHD_HTTP_HEADER_ACCEPT "Accept" | 583 | #define MHD_HTTP_HEADER_ACCEPT "Accept" |
584 | /* Standard. RFC7231, Section 5.3.3 */ | 584 | /* Deprecated. RFC-ietf-httpbis-semantics-19, Section 12.5.2 */ |
585 | #define MHD_HTTP_HEADER_ACCEPT_CHARSET "Accept-Charset" | 585 | #define MHD_HTTP_HEADER_ACCEPT_CHARSET "Accept-Charset" |
586 | /* Standard. RFC7231, Section 5.3.4; RFC7694, Section 3 */ | 586 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 12.5.3 */ |
587 | #define MHD_HTTP_HEADER_ACCEPT_ENCODING "Accept-Encoding" | 587 | #define MHD_HTTP_HEADER_ACCEPT_ENCODING "Accept-Encoding" |
588 | /* Standard. RFC7231, Section 5.3.5 */ | 588 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 12.5.4 */ |
589 | #define MHD_HTTP_HEADER_ACCEPT_LANGUAGE "Accept-Language" | 589 | #define MHD_HTTP_HEADER_ACCEPT_LANGUAGE "Accept-Language" |
590 | /* Standard. RFC7233, Section 2.3 */ | 590 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 14.3 */ |
591 | #define MHD_HTTP_HEADER_ACCEPT_RANGES "Accept-Ranges" | 591 | #define MHD_HTTP_HEADER_ACCEPT_RANGES "Accept-Ranges" |
592 | /* Standard. RFC7234, Section 5.1 */ | 592 | /* Permanent. RFC-ietf-httpbis-cache-19, Section 5.1 */ |
593 | #define MHD_HTTP_HEADER_AGE "Age" | 593 | #define MHD_HTTP_HEADER_AGE "Age" |
594 | /* Standard. RFC7231, Section 7.4.1 */ | 594 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 10.2.1 */ |
595 | #define MHD_HTTP_HEADER_ALLOW "Allow" | 595 | #define MHD_HTTP_HEADER_ALLOW "Allow" |
596 | /* Standard. RFC7235, Section 4.2 */ | 596 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 11.6.3 */ |
597 | #define MHD_HTTP_HEADER_AUTHENTICATION_INFO "Authentication-Info" | ||
598 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 11.6.2 */ | ||
597 | #define MHD_HTTP_HEADER_AUTHORIZATION "Authorization" | 599 | #define MHD_HTTP_HEADER_AUTHORIZATION "Authorization" |
598 | /* Standard. RFC7234, Section 5.2 */ | 600 | /* Permanent. RFC-ietf-httpbis-cache-19, Section 5.2 */ |
599 | #define MHD_HTTP_HEADER_CACHE_CONTROL "Cache-Control" | 601 | #define MHD_HTTP_HEADER_CACHE_CONTROL "Cache-Control" |
600 | /* Reserved. RFC7230, Section 8.1 */ | 602 | /* Permanent. RFC-ietf-httpbis-cache-header-10 */ |
601 | #define MHD_HTTP_HEADER_CLOSE "Close" | 603 | #define MHD_HTTP_HEADER_CACHE_STATUS "Cache-Status" |
602 | /* Standard. RFC7230, Section 6.1 */ | 604 | /* Permanent. RFC-ietf-httpbis-messaging-19, Section 9.6 */ |
603 | #define MHD_HTTP_HEADER_CONNECTION "Connection" | 605 | #define MHD_HTTP_HEADER_CLOSE "Close" |
604 | /* Standard. RFC7231, Section 3.1.2.2 */ | 606 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 7.6.1 */ |
607 | #define MHD_HTTP_HEADER_CONNECTION "Connection" | ||
608 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 8.4 */ | ||
605 | #define MHD_HTTP_HEADER_CONTENT_ENCODING "Content-Encoding" | 609 | #define MHD_HTTP_HEADER_CONTENT_ENCODING "Content-Encoding" |
606 | /* Standard. RFC7231, Section 3.1.3.2 */ | 610 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 8.5 */ |
607 | #define MHD_HTTP_HEADER_CONTENT_LANGUAGE "Content-Language" | 611 | #define MHD_HTTP_HEADER_CONTENT_LANGUAGE "Content-Language" |
608 | /* Standard. RFC7230, Section 3.3.2 */ | 612 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 8.6 */ |
609 | #define MHD_HTTP_HEADER_CONTENT_LENGTH "Content-Length" | 613 | #define MHD_HTTP_HEADER_CONTENT_LENGTH "Content-Length" |
610 | /* Standard. RFC7231, Section 3.1.4.2 */ | 614 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 8.7 */ |
611 | #define MHD_HTTP_HEADER_CONTENT_LOCATION "Content-Location" | 615 | #define MHD_HTTP_HEADER_CONTENT_LOCATION "Content-Location" |
612 | /* Standard. RFC7233, Section 4.2 */ | 616 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 14.4 */ |
613 | #define MHD_HTTP_HEADER_CONTENT_RANGE "Content-Range" | 617 | #define MHD_HTTP_HEADER_CONTENT_RANGE "Content-Range" |
614 | /* Standard. RFC7231, Section 3.1.1.5 */ | 618 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 8.3 */ |
615 | #define MHD_HTTP_HEADER_CONTENT_TYPE "Content-Type" | 619 | #define MHD_HTTP_HEADER_CONTENT_TYPE "Content-Type" |
616 | /* Standard. RFC7231, Section 7.1.1.2 */ | 620 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 6.6.1 */ |
617 | #define MHD_HTTP_HEADER_DATE "Date" | 621 | #define MHD_HTTP_HEADER_DATE "Date" |
618 | /* Standard. RFC7232, Section 2.3 */ | 622 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 8.8.3 */ |
619 | #define MHD_HTTP_HEADER_ETAG "ETag" | 623 | #define MHD_HTTP_HEADER_ETAG "ETag" |
620 | /* Standard. RFC7231, Section 5.1.1 */ | 624 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 10.1.1 */ |
621 | #define MHD_HTTP_HEADER_EXPECT "Expect" | 625 | #define MHD_HTTP_HEADER_EXPECT "Expect" |
622 | /* Standard. RFC7234, Section 5.3 */ | 626 | /* Permanent. RFC-ietf-httpbis-expect-ct-08 */ |
623 | #define MHD_HTTP_HEADER_EXPIRES "Expires" | 627 | #define MHD_HTTP_HEADER_EXPECT_CT "Expect-CT" |
624 | /* Standard. RFC7231, Section 5.5.1 */ | 628 | /* Permanent. RFC-ietf-httpbis-cache-19, Section 5.3 */ |
625 | #define MHD_HTTP_HEADER_FROM "From" | 629 | #define MHD_HTTP_HEADER_EXPIRES "Expires" |
626 | /* Standard. RFC7230, Section 5.4 */ | 630 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 10.1.2 */ |
627 | #define MHD_HTTP_HEADER_HOST "Host" | 631 | #define MHD_HTTP_HEADER_FROM "From" |
628 | /* Standard. RFC7232, Section 3.1 */ | 632 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 7.2 */ |
629 | #define MHD_HTTP_HEADER_IF_MATCH "If-Match" | 633 | #define MHD_HTTP_HEADER_HOST "Host" |
630 | /* Standard. RFC7232, Section 3.3 */ | 634 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 13.1.1 */ |
635 | #define MHD_HTTP_HEADER_IF_MATCH "If-Match" | ||
636 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 13.1.3 */ | ||
631 | #define MHD_HTTP_HEADER_IF_MODIFIED_SINCE "If-Modified-Since" | 637 | #define MHD_HTTP_HEADER_IF_MODIFIED_SINCE "If-Modified-Since" |
632 | /* Standard. RFC7232, Section 3.2 */ | 638 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 13.1.2 */ |
633 | #define MHD_HTTP_HEADER_IF_NONE_MATCH "If-None-Match" | 639 | #define MHD_HTTP_HEADER_IF_NONE_MATCH "If-None-Match" |
634 | /* Standard. RFC7233, Section 3.2 */ | 640 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 13.1.5 */ |
635 | #define MHD_HTTP_HEADER_IF_RANGE "If-Range" | 641 | #define MHD_HTTP_HEADER_IF_RANGE "If-Range" |
636 | /* Standard. RFC7232, Section 3.4 */ | 642 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 13.1.4 */ |
637 | #define MHD_HTTP_HEADER_IF_UNMODIFIED_SINCE "If-Unmodified-Since" | 643 | #define MHD_HTTP_HEADER_IF_UNMODIFIED_SINCE "If-Unmodified-Since" |
638 | /* Standard. RFC7232, Section 2.2 */ | 644 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 8.8.2 */ |
639 | #define MHD_HTTP_HEADER_LAST_MODIFIED "Last-Modified" | 645 | #define MHD_HTTP_HEADER_LAST_MODIFIED "Last-Modified" |
640 | /* Standard. RFC7231, Section 7.1.2 */ | 646 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 10.2.2 */ |
641 | #define MHD_HTTP_HEADER_LOCATION "Location" | 647 | #define MHD_HTTP_HEADER_LOCATION "Location" |
642 | /* Standard. RFC7231, Section 5.1.2 */ | 648 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 7.6.2 */ |
643 | #define MHD_HTTP_HEADER_MAX_FORWARDS "Max-Forwards" | 649 | #define MHD_HTTP_HEADER_MAX_FORWARDS "Max-Forwards" |
644 | /* Standard. RFC7231, Appendix A.1 */ | 650 | /* Permanent. RFC-ietf-httpbis-messaging-19, Appendix B.1 */ |
645 | #define MHD_HTTP_HEADER_MIME_VERSION "MIME-Version" | 651 | #define MHD_HTTP_HEADER_MIME_VERSION "MIME-Version" |
646 | /* Standard. RFC7234, Section 5.4 */ | 652 | /* Permanent. RFC-ietf-httpbis-cache-19, Section 5.4 */ |
647 | #define MHD_HTTP_HEADER_PRAGMA "Pragma" | 653 | #define MHD_HTTP_HEADER_PRAGMA "Pragma" |
648 | /* Standard. RFC7235, Section 4.3 */ | 654 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 11.7.1 */ |
649 | #define MHD_HTTP_HEADER_PROXY_AUTHENTICATE "Proxy-Authenticate" | 655 | #define MHD_HTTP_HEADER_PROXY_AUTHENTICATE "Proxy-Authenticate" |
650 | /* Standard. RFC7235, Section 4.4 */ | 656 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 11.7.3 */ |
657 | #define MHD_HTTP_HEADER_PROXY_AUTHENTICATION_INFO "Proxy-Authentication-Info" | ||
658 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 11.7.2 */ | ||
651 | #define MHD_HTTP_HEADER_PROXY_AUTHORIZATION "Proxy-Authorization" | 659 | #define MHD_HTTP_HEADER_PROXY_AUTHORIZATION "Proxy-Authorization" |
652 | /* Standard. RFC7233, Section 3.1 */ | 660 | /* Permanent. RFC-ietf-httpbis-proxy-status-08 */ |
653 | #define MHD_HTTP_HEADER_RANGE "Range" | 661 | #define MHD_HTTP_HEADER_PROXY_STATUS "Proxy-Status" |
654 | /* Standard. RFC7231, Section 5.5.2 */ | 662 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 14.2 */ |
655 | #define MHD_HTTP_HEADER_REFERER "Referer" | 663 | #define MHD_HTTP_HEADER_RANGE "Range" |
656 | /* Standard. RFC7231, Section 7.1.3 */ | 664 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 10.1.3 */ |
657 | #define MHD_HTTP_HEADER_RETRY_AFTER "Retry-After" | 665 | #define MHD_HTTP_HEADER_REFERER "Referer" |
658 | /* Standard. RFC7231, Section 7.4.2 */ | 666 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 10.2.3 */ |
659 | #define MHD_HTTP_HEADER_SERVER "Server" | 667 | #define MHD_HTTP_HEADER_RETRY_AFTER "Retry-After" |
660 | /* Standard. RFC7230, Section 4.3 */ | 668 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 10.2.4 */ |
661 | #define MHD_HTTP_HEADER_TE "TE" | 669 | #define MHD_HTTP_HEADER_SERVER "Server" |
662 | /* Standard. RFC7230, Section 4.4 */ | 670 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 10.1.4 */ |
663 | #define MHD_HTTP_HEADER_TRAILER "Trailer" | 671 | #define MHD_HTTP_HEADER_TE "TE" |
664 | /* Standard. RFC7230, Section 3.3.1 */ | 672 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 6.6.2 */ |
673 | #define MHD_HTTP_HEADER_TRAILER "Trailer" | ||
674 | /* Permanent. RFC-ietf-httpbis-messaging-19, Section 6.1 */ | ||
665 | #define MHD_HTTP_HEADER_TRANSFER_ENCODING "Transfer-Encoding" | 675 | #define MHD_HTTP_HEADER_TRANSFER_ENCODING "Transfer-Encoding" |
666 | /* Standard. RFC7230, Section 6.7 */ | 676 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 7.8 */ |
667 | #define MHD_HTTP_HEADER_UPGRADE "Upgrade" | 677 | #define MHD_HTTP_HEADER_UPGRADE "Upgrade" |
668 | /* Standard. RFC7231, Section 5.5.3 */ | 678 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 10.1.5 */ |
669 | #define MHD_HTTP_HEADER_USER_AGENT "User-Agent" | 679 | #define MHD_HTTP_HEADER_USER_AGENT "User-Agent" |
670 | /* Standard. RFC7231, Section 7.1.4 */ | 680 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 12.5.5 */ |
671 | #define MHD_HTTP_HEADER_VARY "Vary" | 681 | #define MHD_HTTP_HEADER_VARY "Vary" |
672 | /* Standard. RFC7230, Section 5.7.1 */ | 682 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 7.6.3 */ |
673 | #define MHD_HTTP_HEADER_VIA "Via" | 683 | #define MHD_HTTP_HEADER_VIA "Via" |
674 | /* Standard. RFC7235, Section 4.1 */ | 684 | /* Obsoleted. RFC-ietf-httpbis-cache-19, Section 5.5 */ |
685 | #define MHD_HTTP_HEADER_WARNING "Warning" | ||
686 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 11.6.1 */ | ||
675 | #define MHD_HTTP_HEADER_WWW_AUTHENTICATE "WWW-Authenticate" | 687 | #define MHD_HTTP_HEADER_WWW_AUTHENTICATE "WWW-Authenticate" |
676 | /* Standard. RFC7234, Section 5.5 */ | 688 | /* Permanent. RFC-ietf-httpbis-semantics-19, Section 12.5.5 */ |
677 | #define MHD_HTTP_HEADER_WARNING "Warning" | 689 | #define MHD_HTTP_HEADER_ASTERISK "*" |
678 | 690 | ||
679 | /* Additional HTTP headers. */ | 691 | /* Additional HTTP headers. */ |
680 | /* No category. RFC4229 */ | 692 | /* Permanent. RFC4229 */ |
681 | #define MHD_HTTP_HEADER_A_IM "A-IM" | 693 | #define MHD_HTTP_HEADER_A_IM "A-IM" |
682 | /* No category. RFC4229 */ | 694 | /* Permanent. RFC4229 */ |
683 | #define MHD_HTTP_HEADER_ACCEPT_ADDITIONS "Accept-Additions" | 695 | #define MHD_HTTP_HEADER_ACCEPT_ADDITIONS "Accept-Additions" |
684 | /* Experimental. RFC-ietf-httpbis-client-hints-15, Section 3.1 */ | 696 | /* Permanent. RFC8942, Section 3.1 */ |
685 | #define MHD_HTTP_HEADER_ACCEPT_CH "Accept-CH" | 697 | #define MHD_HTTP_HEADER_ACCEPT_CH "Accept-CH" |
686 | /* Informational. RFC7089 */ | 698 | /* Permanent. RFC7089 */ |
687 | #define MHD_HTTP_HEADER_ACCEPT_DATETIME "Accept-Datetime" | 699 | #define MHD_HTTP_HEADER_ACCEPT_DATETIME "Accept-Datetime" |
688 | /* No category. RFC4229 */ | 700 | /* Permanent. RFC4229 */ |
689 | #define MHD_HTTP_HEADER_ACCEPT_FEATURES "Accept-Features" | 701 | #define MHD_HTTP_HEADER_ACCEPT_FEATURES "Accept-Features" |
690 | /* No category. RFC5789 */ | 702 | /* Permanent. https://www.w3.org/TR/ldp/ */ |
691 | #define MHD_HTTP_HEADER_ACCEPT_PATCH "Accept-Patch" | 703 | #define MHD_HTTP_HEADER_ACCEPT_POST "Accept-Post" |
692 | /* Standard. https://www.w3.org/TR/ldp/ */ | 704 | /* Permanent. RFC7639, Section 2 */ |
693 | #define MHD_HTTP_HEADER_ACCEPT_POST "Accept-Post" | 705 | #define MHD_HTTP_HEADER_ALPN "ALPN" |
694 | /* Standard. RFC7639, Section 2 */ | 706 | /* Permanent. RFC7838 */ |
695 | #define MHD_HTTP_HEADER_ALPN "ALPN" | 707 | #define MHD_HTTP_HEADER_ALT_SVC "Alt-Svc" |
696 | /* Standard. RFC7838 */ | 708 | /* Permanent. RFC7838 */ |
697 | #define MHD_HTTP_HEADER_ALT_SVC "Alt-Svc" | 709 | #define MHD_HTTP_HEADER_ALT_USED "Alt-Used" |
698 | /* Standard. RFC7838 */ | 710 | /* Permanent. RFC4229 */ |
699 | #define MHD_HTTP_HEADER_ALT_USED "Alt-Used" | 711 | #define MHD_HTTP_HEADER_ALTERNATES "Alternates" |
700 | /* No category. RFC4229 */ | 712 | /* Permanent. RFC4437 */ |
701 | #define MHD_HTTP_HEADER_ALTERNATES "Alternates" | ||
702 | /* No category. RFC4437 */ | ||
703 | #define MHD_HTTP_HEADER_APPLY_TO_REDIRECT_REF "Apply-To-Redirect-Ref" | 713 | #define MHD_HTTP_HEADER_APPLY_TO_REDIRECT_REF "Apply-To-Redirect-Ref" |
704 | /* Experimental. RFC8053, Section 4 */ | 714 | /* Permanent. RFC8053, Section 4 */ |
705 | #define MHD_HTTP_HEADER_AUTHENTICATION_CONTROL "Authentication-Control" | 715 | #define MHD_HTTP_HEADER_AUTHENTICATION_CONTROL "Authentication-Control" |
706 | /* Standard. RFC7615, Section 3 */ | 716 | /* Permanent. RFC4229 */ |
707 | #define MHD_HTTP_HEADER_AUTHENTICATION_INFO "Authentication-Info" | 717 | #define MHD_HTTP_HEADER_C_EXT "C-Ext" |
708 | /* No category. RFC4229 */ | 718 | /* Permanent. RFC4229 */ |
709 | #define MHD_HTTP_HEADER_C_EXT "C-Ext" | 719 | #define MHD_HTTP_HEADER_C_MAN "C-Man" |
710 | /* No category. RFC4229 */ | 720 | /* Permanent. RFC4229 */ |
711 | #define MHD_HTTP_HEADER_C_MAN "C-Man" | 721 | #define MHD_HTTP_HEADER_C_OPT "C-Opt" |
712 | /* No category. RFC4229 */ | 722 | /* Permanent. RFC4229 */ |
713 | #define MHD_HTTP_HEADER_C_OPT "C-Opt" | 723 | #define MHD_HTTP_HEADER_C_PEP "C-PEP" |
714 | /* No category. RFC4229 */ | 724 | /* Permanent. RFC8607, Section 5.1 */ |
715 | #define MHD_HTTP_HEADER_C_PEP "C-PEP" | ||
716 | /* No category. RFC4229 */ | ||
717 | #define MHD_HTTP_HEADER_C_PEP_INFO "C-PEP-Info" | ||
718 | /* Standard. RFC8607, Section 5.1 */ | ||
719 | #define MHD_HTTP_HEADER_CAL_MANAGED_ID "Cal-Managed-ID" | 725 | #define MHD_HTTP_HEADER_CAL_MANAGED_ID "Cal-Managed-ID" |
720 | /* Standard. RFC7809, Section 7.1 */ | 726 | /* Permanent. RFC7809, Section 7.1 */ |
721 | #define MHD_HTTP_HEADER_CALDAV_TIMEZONES "CalDAV-Timezones" | 727 | #define MHD_HTTP_HEADER_CALDAV_TIMEZONES "CalDAV-Timezones" |
722 | /* Standard. RFC8586 */ | 728 | /* Permanent. RFC8586 */ |
723 | #define MHD_HTTP_HEADER_CDN_LOOP "CDN-Loop" | 729 | #define MHD_HTTP_HEADER_CDN_LOOP "CDN-Loop" |
724 | /* Standard. RFC8739, Section 3.3 */ | 730 | /* Permanent. RFC8739, Section 3.3 */ |
725 | #define MHD_HTTP_HEADER_CERT_NOT_AFTER "Cert-Not-After" | 731 | #define MHD_HTTP_HEADER_CERT_NOT_AFTER "Cert-Not-After" |
726 | /* Standard. RFC8739, Section 3.3 */ | 732 | /* Permanent. RFC8739, Section 3.3 */ |
727 | #define MHD_HTTP_HEADER_CERT_NOT_BEFORE "Cert-Not-Before" | 733 | #define MHD_HTTP_HEADER_CERT_NOT_BEFORE "Cert-Not-Before" |
728 | /* Obsoleted. RFC2068; RFC2616 */ | 734 | /* Permanent. RFC6266 */ |
729 | #define MHD_HTTP_HEADER_CONTENT_BASE "Content-Base" | ||
730 | /* Standard. RFC6266 */ | ||
731 | #define MHD_HTTP_HEADER_CONTENT_DISPOSITION "Content-Disposition" | 735 | #define MHD_HTTP_HEADER_CONTENT_DISPOSITION "Content-Disposition" |
732 | /* No category. RFC4229 */ | 736 | /* Permanent. RFC4229 */ |
733 | #define MHD_HTTP_HEADER_CONTENT_ID "Content-ID" | 737 | #define MHD_HTTP_HEADER_CONTENT_ID "Content-ID" |
734 | /* No category. RFC4229 */ | 738 | /* Permanent. RFC4229 */ |
735 | #define MHD_HTTP_HEADER_CONTENT_MD5 "Content-MD5" | ||
736 | /* No category. RFC4229 */ | ||
737 | #define MHD_HTTP_HEADER_CONTENT_SCRIPT_TYPE "Content-Script-Type" | 739 | #define MHD_HTTP_HEADER_CONTENT_SCRIPT_TYPE "Content-Script-Type" |
738 | /* No category. RFC4229 */ | 740 | /* Permanent. RFC4229 */ |
739 | #define MHD_HTTP_HEADER_CONTENT_STYLE_TYPE "Content-Style-Type" | 741 | #define MHD_HTTP_HEADER_CONTENT_STYLE_TYPE "Content-Style-Type" |
740 | /* No category. RFC4229 */ | 742 | /* Permanent. RFC4229 */ |
741 | #define MHD_HTTP_HEADER_CONTENT_VERSION "Content-Version" | 743 | #define MHD_HTTP_HEADER_CONTENT_VERSION "Content-Version" |
742 | /* Standard. RFC6265 */ | 744 | /* Permanent. RFC6265 */ |
743 | #define MHD_HTTP_HEADER_COOKIE "Cookie" | 745 | #define MHD_HTTP_HEADER_COOKIE "Cookie" |
744 | /* Obsoleted. RFC2965; RFC6265 */ | 746 | /* Permanent. https://fetch.spec.whatwg.org/#cross-origin-resource-policy-header */ |
745 | #define MHD_HTTP_HEADER_COOKIE2 "Cookie2" | 747 | #define MHD_HTTP_HEADER_CROSS_ORIGIN_RESOURCE_POLICY \ |
746 | /* Standard. RFC5323 */ | 748 | "Cross-Origin-Resource-Policy" |
747 | #define MHD_HTTP_HEADER_DASL "DASL" | 749 | /* Permanent. RFC5323 */ |
748 | /* Standard. RFC4918 */ | 750 | #define MHD_HTTP_HEADER_DASL "DASL" |
749 | #define MHD_HTTP_HEADER_DAV "DAV" | 751 | /* Permanent. RFC4918 */ |
750 | /* No category. RFC4229 */ | 752 | #define MHD_HTTP_HEADER_DAV "DAV" |
753 | /* Permanent. RFC4229 */ | ||
751 | #define MHD_HTTP_HEADER_DEFAULT_STYLE "Default-Style" | 754 | #define MHD_HTTP_HEADER_DEFAULT_STYLE "Default-Style" |
752 | /* No category. RFC4229 */ | 755 | /* Permanent. RFC4229 */ |
753 | #define MHD_HTTP_HEADER_DELTA_BASE "Delta-Base" | 756 | #define MHD_HTTP_HEADER_DELTA_BASE "Delta-Base" |
754 | /* Standard. RFC4918 */ | 757 | /* Permanent. RFC4918 */ |
755 | #define MHD_HTTP_HEADER_DEPTH "Depth" | 758 | #define MHD_HTTP_HEADER_DEPTH "Depth" |
756 | /* No category. RFC4229 */ | 759 | /* Permanent. RFC4229 */ |
757 | #define MHD_HTTP_HEADER_DERIVED_FROM "Derived-From" | 760 | #define MHD_HTTP_HEADER_DERIVED_FROM "Derived-From" |
758 | /* Standard. RFC4918 */ | 761 | /* Permanent. RFC4918 */ |
759 | #define MHD_HTTP_HEADER_DESTINATION "Destination" | 762 | #define MHD_HTTP_HEADER_DESTINATION "Destination" |
760 | /* No category. RFC4229 */ | 763 | /* Permanent. RFC4229 */ |
761 | #define MHD_HTTP_HEADER_DIFFERENTIAL_ID "Differential-ID" | 764 | #define MHD_HTTP_HEADER_DIFFERENTIAL_ID "Differential-ID" |
762 | /* No category. RFC4229 */ | 765 | /* Permanent. RFC4229 */ |
763 | #define MHD_HTTP_HEADER_DIGEST "Digest" | 766 | #define MHD_HTTP_HEADER_DIGEST "Digest" |
764 | /* Standard. RFC8470 */ | 767 | /* Permanent. RFC8470 */ |
765 | #define MHD_HTTP_HEADER_EARLY_DATA "Early-Data" | 768 | #define MHD_HTTP_HEADER_EARLY_DATA "Early-Data" |
766 | /* Experimental. RFC-ietf-httpbis-expect-ct-08 */ | 769 | /* Permanent. RFC4229 */ |
767 | #define MHD_HTTP_HEADER_EXPECT_CT "Expect-CT" | 770 | #define MHD_HTTP_HEADER_EXT "Ext" |
768 | /* No category. RFC4229 */ | 771 | /* Permanent. RFC7239 */ |
769 | #define MHD_HTTP_HEADER_EXT "Ext" | 772 | #define MHD_HTTP_HEADER_FORWARDED "Forwarded" |
770 | /* Standard. RFC7239 */ | 773 | /* Permanent. RFC4229 */ |
771 | #define MHD_HTTP_HEADER_FORWARDED "Forwarded" | 774 | #define MHD_HTTP_HEADER_GETPROFILE "GetProfile" |
772 | /* No category. RFC4229 */ | 775 | /* Permanent. RFC7486, Section 6.1.1 */ |
773 | #define MHD_HTTP_HEADER_GETPROFILE "GetProfile" | 776 | #define MHD_HTTP_HEADER_HOBAREG "Hobareg" |
774 | /* Experimental. RFC7486, Section 6.1.1 */ | 777 | /* Permanent. RFC7540, Section 3.2.1 */ |
775 | #define MHD_HTTP_HEADER_HOBAREG "Hobareg" | ||
776 | /* Standard. RFC7540, Section 3.2.1 */ | ||
777 | #define MHD_HTTP_HEADER_HTTP2_SETTINGS "HTTP2-Settings" | 778 | #define MHD_HTTP_HEADER_HTTP2_SETTINGS "HTTP2-Settings" |
778 | /* No category. RFC4229 */ | 779 | /* Permanent. RFC4918 */ |
779 | #define MHD_HTTP_HEADER_IM "IM" | 780 | #define MHD_HTTP_HEADER_IF "If" |
780 | /* Standard. RFC4918 */ | 781 | /* Permanent. RFC6638 */ |
781 | #define MHD_HTTP_HEADER_IF "If" | ||
782 | /* Standard. RFC6638 */ | ||
783 | #define MHD_HTTP_HEADER_IF_SCHEDULE_TAG_MATCH "If-Schedule-Tag-Match" | 782 | #define MHD_HTTP_HEADER_IF_SCHEDULE_TAG_MATCH "If-Schedule-Tag-Match" |
784 | /* Standard. RFC8473 */ | 783 | /* Permanent. RFC4229 */ |
784 | #define MHD_HTTP_HEADER_IM "IM" | ||
785 | /* Permanent. RFC8473 */ | ||
785 | #define MHD_HTTP_HEADER_INCLUDE_REFERRED_TOKEN_BINDING_ID \ | 786 | #define MHD_HTTP_HEADER_INCLUDE_REFERRED_TOKEN_BINDING_ID \ |
786 | "Include-Referred-Token-Binding-ID" | 787 | "Include-Referred-Token-Binding-ID" |
787 | /* No category. RFC4229 */ | 788 | /* Permanent. RFC4229 */ |
788 | #define MHD_HTTP_HEADER_KEEP_ALIVE "Keep-Alive" | 789 | #define MHD_HTTP_HEADER_KEEP_ALIVE "Keep-Alive" |
789 | /* No category. RFC4229 */ | 790 | /* Permanent. RFC4229 */ |
790 | #define MHD_HTTP_HEADER_LABEL "Label" | 791 | #define MHD_HTTP_HEADER_LABEL "Label" |
791 | /* Standard. RFC8288 */ | 792 | /* Permanent. RFC8288 */ |
792 | #define MHD_HTTP_HEADER_LINK "Link" | 793 | #define MHD_HTTP_HEADER_LINK "Link" |
793 | /* Standard. RFC4918 */ | 794 | /* Permanent. RFC4918 */ |
794 | #define MHD_HTTP_HEADER_LOCK_TOKEN "Lock-Token" | 795 | #define MHD_HTTP_HEADER_LOCK_TOKEN "Lock-Token" |
795 | /* No category. RFC4229 */ | 796 | /* Permanent. RFC4229 */ |
796 | #define MHD_HTTP_HEADER_MAN "Man" | 797 | #define MHD_HTTP_HEADER_MAN "Man" |
797 | /* Informational. RFC7089 */ | 798 | /* Permanent. RFC7089 */ |
798 | #define MHD_HTTP_HEADER_MEMENTO_DATETIME "Memento-Datetime" | 799 | #define MHD_HTTP_HEADER_MEMENTO_DATETIME "Memento-Datetime" |
799 | /* No category. RFC4229 */ | 800 | /* Permanent. RFC4229 */ |
800 | #define MHD_HTTP_HEADER_METER "Meter" | 801 | #define MHD_HTTP_HEADER_METER "Meter" |
801 | /* No category. RFC4229 */ | 802 | /* Permanent. RFC4229 */ |
802 | #define MHD_HTTP_HEADER_NEGOTIATE "Negotiate" | 803 | #define MHD_HTTP_HEADER_NEGOTIATE "Negotiate" |
803 | /* Standard. OData Version 4.01 Part 1: Protocol; OASIS; Chet_Ensign */ | 804 | /* Permanent. OData Version 4.01 Part 1: Protocol; OASIS; Chet_Ensign */ |
804 | #define MHD_HTTP_HEADER_ODATA_ENTITYID "OData-EntityId" | 805 | #define MHD_HTTP_HEADER_ODATA_ENTITYID "OData-EntityId" |
805 | /* Standard. OData Version 4.01 Part 1: Protocol; OASIS; Chet_Ensign */ | 806 | /* Permanent. OData Version 4.01 Part 1: Protocol; OASIS; Chet_Ensign */ |
806 | #define MHD_HTTP_HEADER_ODATA_ISOLATION "OData-Isolation" | 807 | #define MHD_HTTP_HEADER_ODATA_ISOLATION "OData-Isolation" |
807 | /* Standard. OData Version 4.01 Part 1: Protocol; OASIS; Chet_Ensign */ | 808 | /* Permanent. OData Version 4.01 Part 1: Protocol; OASIS; Chet_Ensign */ |
808 | #define MHD_HTTP_HEADER_ODATA_MAXVERSION "OData-MaxVersion" | 809 | #define MHD_HTTP_HEADER_ODATA_MAXVERSION "OData-MaxVersion" |
809 | /* Standard. OData Version 4.01 Part 1: Protocol; OASIS; Chet_Ensign */ | 810 | /* Permanent. OData Version 4.01 Part 1: Protocol; OASIS; Chet_Ensign */ |
810 | #define MHD_HTTP_HEADER_ODATA_VERSION "OData-Version" | 811 | #define MHD_HTTP_HEADER_ODATA_VERSION "OData-Version" |
811 | /* No category. RFC4229 */ | 812 | /* Permanent. RFC4229 */ |
812 | #define MHD_HTTP_HEADER_OPT "Opt" | 813 | #define MHD_HTTP_HEADER_OPT "Opt" |
813 | /* Experimental. RFC8053, Section 3 */ | 814 | /* Permanent. RFC8053, Section 3 */ |
814 | #define MHD_HTTP_HEADER_OPTIONAL_WWW_AUTHENTICATE "Optional-WWW-Authenticate" | 815 | #define MHD_HTTP_HEADER_OPTIONAL_WWW_AUTHENTICATE "Optional-WWW-Authenticate" |
815 | /* Standard. RFC4229 */ | 816 | /* Permanent. RFC4229 */ |
816 | #define MHD_HTTP_HEADER_ORDERING_TYPE "Ordering-Type" | 817 | #define MHD_HTTP_HEADER_ORDERING_TYPE "Ordering-Type" |
817 | /* Standard. RFC6454 */ | 818 | /* Permanent. RFC6454 */ |
818 | #define MHD_HTTP_HEADER_ORIGIN "Origin" | 819 | #define MHD_HTTP_HEADER_ORIGIN "Origin" |
819 | /* Standard. RFC8613, Section 11.1 */ | 820 | /* Permanent. RFC8613, Section 11.1 */ |
820 | #define MHD_HTTP_HEADER_OSCORE "OSCORE" | 821 | #define MHD_HTTP_HEADER_OSCORE "OSCORE" |
821 | /* Standard. RFC4918 */ | 822 | /* Permanent. RFC4918 */ |
822 | #define MHD_HTTP_HEADER_OVERWRITE "Overwrite" | 823 | #define MHD_HTTP_HEADER_OVERWRITE "Overwrite" |
823 | /* No category. RFC4229 */ | 824 | /* Permanent. RFC4229 */ |
824 | #define MHD_HTTP_HEADER_P3P "P3P" | 825 | #define MHD_HTTP_HEADER_P3P "P3P" |
825 | /* No category. RFC4229 */ | 826 | /* Permanent. RFC4229 */ |
826 | #define MHD_HTTP_HEADER_PEP "PEP" | 827 | #define MHD_HTTP_HEADER_PEP "PEP" |
827 | /* No category. RFC4229 */ | 828 | /* Permanent. RFC4229 */ |
828 | #define MHD_HTTP_HEADER_PICS_LABEL "PICS-Label" | 829 | #define MHD_HTTP_HEADER_PEP_INFO "Pep-Info" |
829 | /* No category. RFC4229 */ | 830 | /* Permanent. RFC4229 */ |
830 | #define MHD_HTTP_HEADER_PEP_INFO "Pep-Info" | 831 | #define MHD_HTTP_HEADER_PICS_LABEL "PICS-Label" |
831 | /* Standard. RFC4229 */ | 832 | /* Permanent. RFC4229 */ |
832 | #define MHD_HTTP_HEADER_POSITION "Position" | 833 | #define MHD_HTTP_HEADER_POSITION "Position" |
833 | /* Standard. RFC7240 */ | 834 | /* Permanent. RFC7240 */ |
834 | #define MHD_HTTP_HEADER_PREFER "Prefer" | 835 | #define MHD_HTTP_HEADER_PREFER "Prefer" |
835 | /* Standard. RFC7240 */ | 836 | /* Permanent. RFC7240 */ |
836 | #define MHD_HTTP_HEADER_PREFERENCE_APPLIED "Preference-Applied" | 837 | #define MHD_HTTP_HEADER_PREFERENCE_APPLIED "Preference-Applied" |
837 | /* No category. RFC4229 */ | 838 | /* Permanent. RFC4229 */ |
838 | #define MHD_HTTP_HEADER_PROFILEOBJECT "ProfileObject" | 839 | #define MHD_HTTP_HEADER_PROFILEOBJECT "ProfileObject" |
839 | /* No category. RFC4229 */ | 840 | /* Permanent. RFC4229 */ |
840 | #define MHD_HTTP_HEADER_PROTOCOL "Protocol" | 841 | #define MHD_HTTP_HEADER_PROTOCOL "Protocol" |
841 | /* No category. RFC4229 */ | 842 | /* Permanent. RFC4229 */ |
842 | #define MHD_HTTP_HEADER_PROTOCOL_INFO "Protocol-Info" | ||
843 | /* No category. RFC4229 */ | ||
844 | #define MHD_HTTP_HEADER_PROTOCOL_QUERY "Protocol-Query" | ||
845 | /* No category. RFC4229 */ | ||
846 | #define MHD_HTTP_HEADER_PROTOCOL_REQUEST "Protocol-Request" | 843 | #define MHD_HTTP_HEADER_PROTOCOL_REQUEST "Protocol-Request" |
847 | /* Standard. RFC7615, Section 4 */ | 844 | /* Permanent. RFC4229 */ |
848 | #define MHD_HTTP_HEADER_PROXY_AUTHENTICATION_INFO "Proxy-Authentication-Info" | ||
849 | /* No category. RFC4229 */ | ||
850 | #define MHD_HTTP_HEADER_PROXY_FEATURES "Proxy-Features" | 845 | #define MHD_HTTP_HEADER_PROXY_FEATURES "Proxy-Features" |
851 | /* No category. RFC4229 */ | 846 | /* Permanent. RFC4229 */ |
852 | #define MHD_HTTP_HEADER_PROXY_INSTRUCTION "Proxy-Instruction" | 847 | #define MHD_HTTP_HEADER_PROXY_INSTRUCTION "Proxy-Instruction" |
853 | /* No category. RFC4229 */ | 848 | /* Permanent. RFC4229 */ |
854 | #define MHD_HTTP_HEADER_PUBLIC "Public" | 849 | #define MHD_HTTP_HEADER_PUBLIC "Public" |
855 | /* Standard. RFC7469 */ | 850 | /* Permanent. RFC7469 */ |
856 | #define MHD_HTTP_HEADER_PUBLIC_KEY_PINS "Public-Key-Pins" | 851 | #define MHD_HTTP_HEADER_PUBLIC_KEY_PINS "Public-Key-Pins" |
857 | /* Standard. RFC7469 */ | 852 | /* Permanent. RFC7469 */ |
858 | #define MHD_HTTP_HEADER_PUBLIC_KEY_PINS_REPORT_ONLY \ | 853 | #define MHD_HTTP_HEADER_PUBLIC_KEY_PINS_REPORT_ONLY \ |
859 | "Public-Key-Pins-Report-Only" | 854 | "Public-Key-Pins-Report-Only" |
860 | /* No category. RFC4437 */ | 855 | /* Permanent. RFC4437 */ |
861 | #define MHD_HTTP_HEADER_REDIRECT_REF "Redirect-Ref" | 856 | #define MHD_HTTP_HEADER_REDIRECT_REF "Redirect-Ref" |
862 | /* Standard. RFC8555, Section 6.5.1 */ | 857 | /* Permanent. RFC8555, Section 6.5.1 */ |
863 | #define MHD_HTTP_HEADER_REPLAY_NONCE "Replay-Nonce" | 858 | #define MHD_HTTP_HEADER_REPLAY_NONCE "Replay-Nonce" |
864 | /* No category. RFC4229 */ | 859 | /* Permanent. RFC4229 */ |
865 | #define MHD_HTTP_HEADER_SAFE "Safe" | 860 | #define MHD_HTTP_HEADER_SAFE "Safe" |
866 | /* Standard. RFC6638 */ | 861 | /* Permanent. RFC6638 */ |
867 | #define MHD_HTTP_HEADER_SCHEDULE_REPLY "Schedule-Reply" | 862 | #define MHD_HTTP_HEADER_SCHEDULE_REPLY "Schedule-Reply" |
868 | /* Standard. RFC6638 */ | 863 | /* Permanent. RFC6638 */ |
869 | #define MHD_HTTP_HEADER_SCHEDULE_TAG "Schedule-Tag" | 864 | #define MHD_HTTP_HEADER_SCHEDULE_TAG "Schedule-Tag" |
870 | /* Standard. RFC8473 */ | 865 | /* Permanent. RFC8473 */ |
871 | #define MHD_HTTP_HEADER_SEC_TOKEN_BINDING "Sec-Token-Binding" | 866 | #define MHD_HTTP_HEADER_SEC_TOKEN_BINDING "Sec-Token-Binding" |
872 | /* Standard. RFC6455 */ | 867 | /* Permanent. RFC6455 */ |
873 | #define MHD_HTTP_HEADER_SEC_WEBSOCKET_ACCEPT "Sec-WebSocket-Accept" | 868 | #define MHD_HTTP_HEADER_SEC_WEBSOCKET_ACCEPT "Sec-WebSocket-Accept" |
874 | /* Standard. RFC6455 */ | 869 | /* Permanent. RFC6455 */ |
875 | #define MHD_HTTP_HEADER_SEC_WEBSOCKET_EXTENSIONS "Sec-WebSocket-Extensions" | 870 | #define MHD_HTTP_HEADER_SEC_WEBSOCKET_EXTENSIONS "Sec-WebSocket-Extensions" |
876 | /* Standard. RFC6455 */ | 871 | /* Permanent. RFC6455 */ |
877 | #define MHD_HTTP_HEADER_SEC_WEBSOCKET_KEY "Sec-WebSocket-Key" | 872 | #define MHD_HTTP_HEADER_SEC_WEBSOCKET_KEY "Sec-WebSocket-Key" |
878 | /* Standard. RFC6455 */ | 873 | /* Permanent. RFC6455 */ |
879 | #define MHD_HTTP_HEADER_SEC_WEBSOCKET_PROTOCOL "Sec-WebSocket-Protocol" | 874 | #define MHD_HTTP_HEADER_SEC_WEBSOCKET_PROTOCOL "Sec-WebSocket-Protocol" |
880 | /* Standard. RFC6455 */ | 875 | /* Permanent. RFC6455 */ |
881 | #define MHD_HTTP_HEADER_SEC_WEBSOCKET_VERSION "Sec-WebSocket-Version" | 876 | #define MHD_HTTP_HEADER_SEC_WEBSOCKET_VERSION "Sec-WebSocket-Version" |
882 | /* No category. RFC4229 */ | 877 | /* Permanent. RFC4229 */ |
883 | #define MHD_HTTP_HEADER_SECURITY_SCHEME "Security-Scheme" | 878 | #define MHD_HTTP_HEADER_SECURITY_SCHEME "Security-Scheme" |
884 | /* Standard. RFC6265 */ | 879 | /* Permanent. RFC6265 */ |
885 | #define MHD_HTTP_HEADER_SET_COOKIE "Set-Cookie" | 880 | #define MHD_HTTP_HEADER_SET_COOKIE "Set-Cookie" |
886 | /* Obsoleted. RFC2965; RFC6265 */ | 881 | /* Permanent. RFC4229 */ |
887 | #define MHD_HTTP_HEADER_SET_COOKIE2 "Set-Cookie2" | 882 | #define MHD_HTTP_HEADER_SETPROFILE "SetProfile" |
888 | /* No category. RFC4229 */ | 883 | /* Permanent. RFC5023 */ |
889 | #define MHD_HTTP_HEADER_SETPROFILE "SetProfile" | 884 | #define MHD_HTTP_HEADER_SLUG "SLUG" |
890 | /* Standard. RFC5023 */ | 885 | /* Permanent. RFC4229 */ |
891 | #define MHD_HTTP_HEADER_SLUG "SLUG" | 886 | #define MHD_HTTP_HEADER_SOAPACTION "SoapAction" |
892 | /* No category. RFC4229 */ | 887 | /* Permanent. RFC4229 */ |
893 | #define MHD_HTTP_HEADER_SOAPACTION "SoapAction" | 888 | #define MHD_HTTP_HEADER_STATUS_URI "Status-URI" |
894 | /* No category. RFC4229 */ | 889 | /* Permanent. RFC6797 */ |
895 | #define MHD_HTTP_HEADER_STATUS_URI "Status-URI" | ||
896 | /* Standard. RFC6797 */ | ||
897 | #define MHD_HTTP_HEADER_STRICT_TRANSPORT_SECURITY "Strict-Transport-Security" | 890 | #define MHD_HTTP_HEADER_STRICT_TRANSPORT_SECURITY "Strict-Transport-Security" |
898 | /* Informational. RFC8594 */ | 891 | /* Permanent. RFC8594 */ |
899 | #define MHD_HTTP_HEADER_SUNSET "Sunset" | 892 | #define MHD_HTTP_HEADER_SUNSET "Sunset" |
900 | /* No category. RFC4229 */ | 893 | /* Permanent. RFC4229 */ |
901 | #define MHD_HTTP_HEADER_SURROGATE_CAPABILITY "Surrogate-Capability" | 894 | #define MHD_HTTP_HEADER_SURROGATE_CAPABILITY "Surrogate-Capability" |
902 | /* No category. RFC4229 */ | 895 | /* Permanent. RFC4229 */ |
903 | #define MHD_HTTP_HEADER_SURROGATE_CONTROL "Surrogate-Control" | 896 | #define MHD_HTTP_HEADER_SURROGATE_CONTROL "Surrogate-Control" |
904 | /* No category. RFC4229 */ | 897 | /* Permanent. RFC4229 */ |
905 | #define MHD_HTTP_HEADER_TCN "TCN" | 898 | #define MHD_HTTP_HEADER_TCN "TCN" |
906 | /* Standard. RFC4918 */ | 899 | /* Permanent. RFC4918 */ |
907 | #define MHD_HTTP_HEADER_TIMEOUT "Timeout" | 900 | #define MHD_HTTP_HEADER_TIMEOUT "Timeout" |
908 | /* Standard. RFC8030, Section 5.4 */ | 901 | /* Permanent. RFC8030, Section 5.4 */ |
909 | #define MHD_HTTP_HEADER_TOPIC "Topic" | 902 | #define MHD_HTTP_HEADER_TOPIC "Topic" |
910 | /* Standard. RFC8030, Section 5.2 */ | 903 | /* Permanent. RFC8030, Section 5.2 */ |
911 | #define MHD_HTTP_HEADER_TTL "TTL" | 904 | #define MHD_HTTP_HEADER_TTL "TTL" |
912 | /* Standard. RFC8030, Section 5.3 */ | 905 | /* Permanent. RFC8030, Section 5.3 */ |
913 | #define MHD_HTTP_HEADER_URGENCY "Urgency" | 906 | #define MHD_HTTP_HEADER_URGENCY "Urgency" |
914 | /* No category. RFC4229 */ | 907 | /* Permanent. RFC4229 */ |
915 | #define MHD_HTTP_HEADER_URI "URI" | 908 | #define MHD_HTTP_HEADER_URI "URI" |
916 | /* No category. RFC4229 */ | 909 | /* Permanent. RFC4229 */ |
917 | #define MHD_HTTP_HEADER_VARIANT_VARY "Variant-Vary" | 910 | #define MHD_HTTP_HEADER_VARIANT_VARY "Variant-Vary" |
918 | /* No category. RFC4229 */ | 911 | /* Permanent. RFC4229 */ |
919 | #define MHD_HTTP_HEADER_WANT_DIGEST "Want-Digest" | 912 | #define MHD_HTTP_HEADER_WANT_DIGEST "Want-Digest" |
920 | /* Standard. https://fetch.spec.whatwg.org/#x-content-type-options-header */ | 913 | /* Permanent. https://fetch.spec.whatwg.org/#x-content-type-options-header */ |
921 | #define MHD_HTTP_HEADER_X_CONTENT_TYPE_OPTIONS "X-Content-Type-Options" | 914 | #define MHD_HTTP_HEADER_X_CONTENT_TYPE_OPTIONS "X-Content-Type-Options" |
922 | /* Informational. RFC7034 */ | 915 | /* Permanent. RFC7034 */ |
923 | #define MHD_HTTP_HEADER_X_FRAME_OPTIONS "X-Frame-Options" | 916 | #define MHD_HTTP_HEADER_X_FRAME_OPTIONS "X-Frame-Options" |
917 | /* Provisional. RFC5789 */ | ||
918 | #define MHD_HTTP_HEADER_ACCEPT_PATCH "Accept-Patch" | ||
919 | /* Provisional. W3C Web Application Formats Working Group */ | ||
920 | #define MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_CREDENTIALS \ | ||
921 | "Access-Control-Allow-Credentials" | ||
922 | /* Provisional. W3C Web Application Formats Working Group */ | ||
923 | #define MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_HEADERS \ | ||
924 | "Access-Control-Allow-Headers" | ||
925 | /* Provisional. W3C Web Application Formats Working Group */ | ||
926 | #define MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_METHODS \ | ||
927 | "Access-Control-Allow-Methods" | ||
928 | /* Provisional. W3C Web Application Formats Working Group */ | ||
929 | #define MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN \ | ||
930 | "Access-Control-Allow-Origin" | ||
931 | /* Provisional. W3C Web Application Formats Working Group */ | ||
932 | #define MHD_HTTP_HEADER_ACCESS_CONTROL_MAX_AGE "Access-Control-Max-Age" | ||
933 | /* Provisional. W3C Web Application Formats Working Group */ | ||
934 | #define MHD_HTTP_HEADER_ACCESS_CONTROL_REQUEST_HEADERS \ | ||
935 | "Access-Control-Request-Headers" | ||
936 | /* Provisional. W3C Web Application Formats Working Group */ | ||
937 | #define MHD_HTTP_HEADER_ACCESS_CONTROL_REQUEST_METHOD \ | ||
938 | "Access-Control-Request-Method" | ||
939 | /* Provisional. https://github.com/ampproject/amphtml/blob/master/spec/amp-cache-transform.md */ | ||
940 | #define MHD_HTTP_HEADER_AMP_CACHE_TRANSFORM "AMP-Cache-Transform" | ||
941 | /* Provisional. RFC4229 */ | ||
942 | #define MHD_HTTP_HEADER_COMPLIANCE "Compliance" | ||
943 | /* Provisional. RFC4229 */ | ||
944 | #define MHD_HTTP_HEADER_CONTENT_TRANSFER_ENCODING "Content-Transfer-Encoding" | ||
945 | /* Provisional. RFC4229 */ | ||
946 | #define MHD_HTTP_HEADER_COST "Cost" | ||
947 | /* Provisional. RFC6017 */ | ||
948 | #define MHD_HTTP_HEADER_EDIINT_FEATURES "EDIINT-Features" | ||
949 | /* Provisional. OData Version 4.01 Part 1: Protocol; OASIS; Chet_Ensign */ | ||
950 | #define MHD_HTTP_HEADER_ISOLATION "Isolation" | ||
951 | /* Provisional. RFC4229 */ | ||
952 | #define MHD_HTTP_HEADER_MESSAGE_ID "Message-ID" | ||
953 | /* Provisional. RFC4229 */ | ||
954 | #define MHD_HTTP_HEADER_NON_COMPLIANCE "Non-Compliance" | ||
955 | /* Provisional. RFC4229 */ | ||
956 | #define MHD_HTTP_HEADER_OPTIONAL "Optional" | ||
957 | /* Provisional. OASIS Project Specification 01; OASIS; Chet_Ensign */ | ||
958 | #define MHD_HTTP_HEADER_OSLC_CORE_VERSION "OSLC-Core-Version" | ||
959 | /* Provisional. Repeatable Requests Version 1.0; OASIS; Chet_Ensign */ | ||
960 | #define MHD_HTTP_HEADER_REPEATABILITY_CLIENT_ID "Repeatability-Client-ID" | ||
961 | /* Provisional. Repeatable Requests Version 1.0; OASIS; Chet_Ensign */ | ||
962 | #define MHD_HTTP_HEADER_REPEATABILITY_FIRST_SENT "Repeatability-First-Sent" | ||
963 | /* Provisional. Repeatable Requests Version 1.0; OASIS; Chet_Ensign */ | ||
964 | #define MHD_HTTP_HEADER_REPEATABILITY_REQUEST_ID "Repeatability-Request-ID" | ||
965 | /* Provisional. Repeatable Requests Version 1.0; OASIS; Chet_Ensign */ | ||
966 | #define MHD_HTTP_HEADER_REPEATABILITY_RESULT "Repeatability-Result" | ||
967 | /* Provisional. RFC4229 */ | ||
968 | #define MHD_HTTP_HEADER_RESOLUTION_HINT "Resolution-Hint" | ||
969 | /* Provisional. RFC4229 */ | ||
970 | #define MHD_HTTP_HEADER_RESOLVER_LOCATION "Resolver-Location" | ||
971 | /* Provisional. RFC4229 */ | ||
972 | #define MHD_HTTP_HEADER_SUBOK "SubOK" | ||
973 | /* Provisional. RFC4229 */ | ||
974 | #define MHD_HTTP_HEADER_SUBST "Subst" | ||
975 | /* Provisional. https://www.w3.org/TR/resource-timing-1/#timing-allow-origin */ | ||
976 | #define MHD_HTTP_HEADER_TIMING_ALLOW_ORIGIN "Timing-Allow-Origin" | ||
977 | /* Provisional. RFC4229 */ | ||
978 | #define MHD_HTTP_HEADER_TITLE "Title" | ||
979 | /* Provisional. https://www.w3.org/TR/trace-context/#traceparent-field */ | ||
980 | #define MHD_HTTP_HEADER_TRACEPARENT "Traceparent" | ||
981 | /* Provisional. https://www.w3.org/TR/trace-context/#tracestate-field */ | ||
982 | #define MHD_HTTP_HEADER_TRACESTATE "Tracestate" | ||
983 | /* Provisional. RFC4229 */ | ||
984 | #define MHD_HTTP_HEADER_UA_COLOR "UA-Color" | ||
985 | /* Provisional. RFC4229 */ | ||
986 | #define MHD_HTTP_HEADER_UA_MEDIA "UA-Media" | ||
987 | /* Provisional. RFC4229 */ | ||
988 | #define MHD_HTTP_HEADER_UA_PIXELS "UA-Pixels" | ||
989 | /* Provisional. RFC4229 */ | ||
990 | #define MHD_HTTP_HEADER_UA_RESOLUTION "UA-Resolution" | ||
991 | /* Provisional. RFC4229 */ | ||
992 | #define MHD_HTTP_HEADER_UA_WINDOWPIXELS "UA-Windowpixels" | ||
993 | /* Provisional. RFC4229 */ | ||
994 | #define MHD_HTTP_HEADER_VERSION "Version" | ||
995 | /* Provisional. W3C Mobile Web Best Practices Working Group */ | ||
996 | #define MHD_HTTP_HEADER_X_DEVICE_ACCEPT "X-Device-Accept" | ||
997 | /* Provisional. W3C Mobile Web Best Practices Working Group */ | ||
998 | #define MHD_HTTP_HEADER_X_DEVICE_ACCEPT_CHARSET "X-Device-Accept-Charset" | ||
999 | /* Provisional. W3C Mobile Web Best Practices Working Group */ | ||
1000 | #define MHD_HTTP_HEADER_X_DEVICE_ACCEPT_ENCODING "X-Device-Accept-Encoding" | ||
1001 | /* Provisional. W3C Mobile Web Best Practices Working Group */ | ||
1002 | #define MHD_HTTP_HEADER_X_DEVICE_ACCEPT_LANGUAGE "X-Device-Accept-Language" | ||
1003 | /* Provisional. W3C Mobile Web Best Practices Working Group */ | ||
1004 | #define MHD_HTTP_HEADER_X_DEVICE_USER_AGENT "X-Device-User-Agent" | ||
1005 | /* Deprecated. W3C Web Application Formats Working Group */ | ||
1006 | #define MHD_HTTP_HEADER_ACCESS_CONTROL "Access-Control" | ||
1007 | /* Deprecated. RFC4229 */ | ||
1008 | #define MHD_HTTP_HEADER_C_PEP_INFO "C-PEP-Info" | ||
1009 | /* Deprecated. W3C Web Application Formats Working Group */ | ||
1010 | #define MHD_HTTP_HEADER_METHOD_CHECK "Method-Check" | ||
1011 | /* Deprecated. W3C Web Application Formats Working Group */ | ||
1012 | #define MHD_HTTP_HEADER_METHOD_CHECK_EXPIRES "Method-Check-Expires" | ||
1013 | /* Deprecated. RFC4229 */ | ||
1014 | #define MHD_HTTP_HEADER_PROTOCOL_INFO "Protocol-Info" | ||
1015 | /* Deprecated. RFC4229 */ | ||
1016 | #define MHD_HTTP_HEADER_PROTOCOL_QUERY "Protocol-Query" | ||
1017 | /* Deprecated. W3C Web Application Formats Working Group */ | ||
1018 | #define MHD_HTTP_HEADER_REFERER_ROOT "Referer-Root" | ||
1019 | /* Obsoleted. RFC2068; RFC2616 */ | ||
1020 | #define MHD_HTTP_HEADER_CONTENT_BASE "Content-Base" | ||
1021 | /* Obsoleted. RFC2616, Section 14.15; RFC7231, Appendix B */ | ||
1022 | #define MHD_HTTP_HEADER_CONTENT_MD5 "Content-MD5" | ||
1023 | /* Obsoleted. RFC2965; RFC6265 */ | ||
1024 | #define MHD_HTTP_HEADER_COOKIE2 "Cookie2" | ||
1025 | /* Obsoleted. RFC2965; RFC6265 */ | ||
1026 | #define MHD_HTTP_HEADER_SET_COOKIE2 "Set-Cookie2" | ||
924 | 1027 | ||
925 | /* Some provisional headers. */ | 1028 | /* Some provisional headers. */ |
926 | #define MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN \ | 1029 | #define MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN \ |