From 95efdf6f42ade885397cd10f81caa0e73e26c201 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sun, 11 Dec 2016 11:36:57 +1300 Subject: [PATCH] HTTP/1.1: Add registered codes entry for new 103 (Early Hints) status code --- src/http/StatusCode.cc | 4 ++++ src/http/StatusCode.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/http/StatusCode.cc b/src/http/StatusCode.cc index 75bf1c4c41..12e7be10fc 100644 --- a/src/http/StatusCode.cc +++ b/src/http/StatusCode.cc @@ -33,6 +33,10 @@ Http::StatusCodeString(const Http::StatusCode status) return "Processing"; break; + case Http::scEarlyHints: // 103 + return "Early Hints"; + break; + // 200-299 case Http::scOkay: return "OK"; diff --git a/src/http/StatusCode.h b/src/http/StatusCode.h index 19c00e5500..6f62042aa3 100644 --- a/src/http/StatusCode.h +++ b/src/http/StatusCode.h @@ -22,6 +22,7 @@ typedef enum { scContinue = 100, scSwitchingProtocols = 101, scProcessing = 102, /**< RFC2518 section 10.1 */ + scEarlyHints = 103, /**< draft-kazuho-early-hints-status-code */ scOkay = 200, scCreated = 201, scAccepted = 202, -- 2.47.3