1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-22 06:09:25 -05:00

feat(std/http) support code 103 Early Hints (#6021)

This commit is contained in:
Yasser A.Idrissi 2020-06-01 17:10:17 +02:00 committed by GitHub
parent f0ba814a79
commit 12d741c2fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"],