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:
parent
f0ba814a79
commit
12d741c2fe
1 changed files with 3 additions and 1 deletions
|
@ -8,7 +8,8 @@ export enum Status {
|
||||||
SwitchingProtocols = 101,
|
SwitchingProtocols = 101,
|
||||||
/** RFC 2518, 10.1 */
|
/** RFC 2518, 10.1 */
|
||||||
Processing = 102,
|
Processing = 102,
|
||||||
|
/** RFC 8297 **/
|
||||||
|
EarlyHints = 103,
|
||||||
/** RFC 7231, 6.3.1 */
|
/** RFC 7231, 6.3.1 */
|
||||||
OK = 200,
|
OK = 200,
|
||||||
/** RFC 7231, 6.3.2 */
|
/** RFC 7231, 6.3.2 */
|
||||||
|
@ -134,6 +135,7 @@ export const STATUS_TEXT = new Map<Status, string>([
|
||||||
[Status.Continue, "Continue"],
|
[Status.Continue, "Continue"],
|
||||||
[Status.SwitchingProtocols, "Switching Protocols"],
|
[Status.SwitchingProtocols, "Switching Protocols"],
|
||||||
[Status.Processing, "Processing"],
|
[Status.Processing, "Processing"],
|
||||||
|
[Status.EarlyHints, "Early Hints"],
|
||||||
[Status.OK, "OK"],
|
[Status.OK, "OK"],
|
||||||
[Status.Created, "Created"],
|
[Status.Created, "Created"],
|
||||||
[Status.Accepted, "Accepted"],
|
[Status.Accepted, "Accepted"],
|
||||||
|
|
Loading…
Add table
Reference in a new issue