We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 881b601 commit a3dbe51Copy full SHA for a3dbe51
README.md
@@ -39,6 +39,12 @@ class HttpRequestParser:
39
def should_keep_alive(self) -> bool:
40
"""Return ``True`` if keep-alive mode is preferred."""
41
42
+ def should_upgrade(self) -> bool:
43
+ """Return ``True`` if the parsed request is a valid Upgrade request.
44
+ The method exposes a flag set just before on_headers_complete.
45
+ Calling this method earlier will only yield `False`.
46
+ """
47
+
48
def feed_data(self, data: bytes):
49
"""Feed data to the parser.
50
0 commit comments