summaryrefslogtreecommitdiff
path: root/std/http/http_status.ts
diff options
context:
space:
mode:
authorYasser A.Idrissi <spookyframework@gmail.com>2020-06-01 17:10:17 +0200
committerGitHub <noreply@github.com>2020-06-01 11:10:17 -0400
commit12d741c2fe453625d510313beaa2e1c282784c00 (patch)
tree09304ef2ddf4963ecef76770d276de7cb7a107c2 /std/http/http_status.ts
parentf0ba814a79fe4f0791c4b0ef496a704356597467 (diff)
feat(std/http) support code 103 Early Hints (#6021)
Diffstat (limited to 'std/http/http_status.ts')
-rw-r--r--std/http/http_status.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/std/http/http_status.ts b/std/http/http_status.ts
index e8d178212..a0d0c278d 100644
--- a/std/http/http_status.ts
+++ b/std/http/http_status.ts
@@ -8,7 +8,8 @@ export enum Status {
SwitchingProtocols = 101,
/** RFC 2518, 10.1 */
Processing = 102,
-
+ /** RFC 8297 **/
+ EarlyHints = 103,
/** RFC 7231, 6.3.1 */
OK = 200,
/** RFC 7231, 6.3.2 */
@@ -134,6 +135,7 @@ export const STATUS_TEXT = new Map<Status, string>([
[Status.Continue, "Continue"],
[Status.SwitchingProtocols, "Switching Protocols"],
[Status.Processing, "Processing"],
+ [Status.EarlyHints, "Early Hints"],
[Status.OK, "OK"],
[Status.Created, "Created"],
[Status.Accepted, "Accepted"],