From 12d741c2fe453625d510313beaa2e1c282784c00 Mon Sep 17 00:00:00 2001 From: "Yasser A.Idrissi" Date: Mon, 1 Jun 2020 17:10:17 +0200 Subject: feat(std/http) support code 103 Early Hints (#6021) --- std/http/http_status.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'std') 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.Continue, "Continue"], [Status.SwitchingProtocols, "Switching Protocols"], [Status.Processing, "Processing"], + [Status.EarlyHints, "Early Hints"], [Status.OK, "OK"], [Status.Created, "Created"], [Status.Accepted, "Accepted"], -- cgit v1.2.3