]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* include/httpd.h: Define HTTP_EARLY_HINTS (103) per RFC 8297.
authorRuediger Pluem <rpluem@apache.org>
Thu, 21 Aug 2025 07:04:46 +0000 (07:04 +0000)
committerRuediger Pluem <rpluem@apache.org>
Thu, 21 Aug 2025 07:04:46 +0000 (07:04 +0000)
* modules/http/http_protocol.c (status_lines): Add 103 response.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1927935 13f79535-47bb-0310-9956-ffa450edef68

include/httpd.h
modules/http/http_protocol.c

index 577891e567a9d9ba5a61ea60f03db054f6bedbfa..b12b7e4e21bed5775a9bb8965eb46b25f8cfeef7 100644 (file)
@@ -487,11 +487,12 @@ AP_DECLARE(const char *) ap_get_server_built(void);
  * When adding a new code here add it to status_lines as well.
  * A future version should dynamically generate the apr_table_t at startup.
  */
-#define RESPONSE_CODES 103
+#define RESPONSE_CODES 104
 
 #define HTTP_CONTINUE                        100
 #define HTTP_SWITCHING_PROTOCOLS             101
 #define HTTP_PROCESSING                      102
+#define HTTP_EARLY_HINTS                     103
 #define HTTP_OK                              200
 #define HTTP_CREATED                         201
 #define HTTP_ACCEPTED                        202
index 75c4531bf0523d292de9e24f25e6ea4428edc0b2..41d9f7fc7d3999f61f07fb2140970b4f87095667 100644 (file)
@@ -75,7 +75,8 @@ static const char * const status_lines[RESPONSE_CODES] =
     "100 Continue",
     "101 Switching Protocols",
     "102 Processing",
-#define LEVEL_200  3
+    "103 Early Hints",
+#define LEVEL_200  4
     "200 OK",
     "201 Created",
     "202 Accepted",
@@ -103,7 +104,7 @@ static const char * const status_lines[RESPONSE_CODES] =
     NULL, /* 224 */
     NULL, /* 225 */
     "226 IM Used",
-#define LEVEL_300 30
+#define LEVEL_300 31
     "300 Multiple Choices",
     "301 Moved Permanently",
     "302 Found",
@@ -113,7 +114,7 @@ static const char * const status_lines[RESPONSE_CODES] =
     NULL, /* 306 */
     "307 Temporary Redirect",
     "308 Permanent Redirect",
-#define LEVEL_400 39
+#define LEVEL_400 40
     "400 Bad Request",
     "401 Unauthorized",
     "402 Payment Required",
@@ -166,7 +167,7 @@ static const char * const status_lines[RESPONSE_CODES] =
     NULL, /* 449 */
     NULL, /* 450 */
     "451 Unavailable For Legal Reasons",
-#define LEVEL_500 91
+#define LEVEL_500 92
     "500 Internal Server Error",
     "501 Not Implemented",
     "502 Bad Gateway",