Add http.MISDIRECTED_REQUEST introduced in 3.7 (#3293)

This commit is contained in:
Stefan T
2019-10-01 15:42:44 -07:00
committed by Jelle Zijlstra
parent c32e1e2280
commit 0abb50e20a

View File

@@ -1,3 +1,4 @@
import sys
from enum import IntEnum
class HTTPStatus(IntEnum):
@@ -5,7 +6,6 @@ class HTTPStatus(IntEnum):
def phrase(self) -> str: ...
@property
def description(self) -> str: ...
CONTINUE: int
SWITCHING_PROTOCOLS: int
PROCESSING: int
@@ -63,3 +63,5 @@ class HTTPStatus(IntEnum):
LOOP_DETECTED: int
NOT_EXTENDED: int
NETWORK_AUTHENTICATION_REQUIRED: int
if sys.version_info >= (3, 7):
MISDIRECTED_REQUEST: int