Skip to content

Commit b917376

Browse files
committed
* include/httpd.h: Define HTTP_EARLY_HINTS (103) per RFC 8297.
* 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
1 parent 078449e commit b917376

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

include/httpd.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,11 +487,12 @@ AP_DECLARE(const char *) ap_get_server_built(void);
487487
* When adding a new code here add it to status_lines as well.
488488
* A future version should dynamically generate the apr_table_t at startup.
489489
*/
490-
#define RESPONSE_CODES 103
490+
#define RESPONSE_CODES 104
491491

492492
#define HTTP_CONTINUE 100
493493
#define HTTP_SWITCHING_PROTOCOLS 101
494494
#define HTTP_PROCESSING 102
495+
#define HTTP_EARLY_HINTS 103
495496
#define HTTP_OK 200
496497
#define HTTP_CREATED 201
497498
#define HTTP_ACCEPTED 202

modules/http/http_protocol.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ static const char * const status_lines[RESPONSE_CODES] =
7575
"100 Continue",
7676
"101 Switching Protocols",
7777
"102 Processing",
78-
#define LEVEL_200 3
78+
"103 Early Hints",
79+
#define LEVEL_200 4
7980
"200 OK",
8081
"201 Created",
8182
"202 Accepted",
@@ -103,7 +104,7 @@ static const char * const status_lines[RESPONSE_CODES] =
103104
NULL, /* 224 */
104105
NULL, /* 225 */
105106
"226 IM Used",
106-
#define LEVEL_300 30
107+
#define LEVEL_300 31
107108
"300 Multiple Choices",
108109
"301 Moved Permanently",
109110
"302 Found",
@@ -113,7 +114,7 @@ static const char * const status_lines[RESPONSE_CODES] =
113114
NULL, /* 306 */
114115
"307 Temporary Redirect",
115116
"308 Permanent Redirect",
116-
#define LEVEL_400 39
117+
#define LEVEL_400 40
117118
"400 Bad Request",
118119
"401 Unauthorized",
119120
"402 Payment Required",
@@ -166,7 +167,7 @@ static const char * const status_lines[RESPONSE_CODES] =
166167
NULL, /* 449 */
167168
NULL, /* 450 */
168169
"451 Unavailable For Legal Reasons",
169-
#define LEVEL_500 91
170+
#define LEVEL_500 92
170171
"500 Internal Server Error",
171172
"501 Not Implemented",
172173
"502 Bad Gateway",

0 commit comments

Comments
 (0)