Merge pull request #1092 from nghttp2/define-103

src: Define 103 status code
This commit is contained in:
Tatsuhiro Tsujikawa 2017-12-20 20:39:22 +09:00 committed by GitHub
commit a776b0dbcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,8 @@ StringRef get_reason_phrase(unsigned int status_code) {
return StringRef::from_lit("Continue"); return StringRef::from_lit("Continue");
case 101: case 101:
return StringRef::from_lit("Switching Protocols"); return StringRef::from_lit("Switching Protocols");
case 103:
return StringRef::from_lit("Early Hints");
case 200: case 200:
return StringRef::from_lit("OK"); return StringRef::from_lit("OK");
case 201: case 201:
@ -140,6 +142,8 @@ StringRef stringify_status(BlockAllocator &balloc, unsigned int status_code) {
return StringRef::from_lit("100"); return StringRef::from_lit("100");
case 101: case 101:
return StringRef::from_lit("101"); return StringRef::from_lit("101");
case 103:
return StringRef::from_lit("103");
case 200: case 200:
return StringRef::from_lit("200"); return StringRef::from_lit("200");
case 201: case 201: