Skip to content

Commit 82d97da

Browse files
timoffexKriechi
authored andcommitted
clarify RequestReceived CONTINUATION frame behavior
1 parent ee4fa16 commit 82d97da

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/h2/events.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ class Event:
2323

2424
class RequestReceived(Event):
2525
"""
26-
The RequestReceived event is fired whenever request headers are received.
27-
This event carries the HTTP headers for the given request and the stream ID
28-
of the new stream.
26+
The RequestReceived event is fired whenever all of a request's headers
27+
are received. This event carries the HTTP headers for the given request
28+
and the stream ID of the new stream.
29+
30+
In HTTP/2, headers may be sent as a HEADERS frame followed by zero or more
31+
CONTINUATION frames with the final frame setting the END_HEADERS flag.
32+
This event is fired after the entire sequence is received.
2933
3034
.. versionchanged:: 2.3.0
3135
Changed the type of ``headers`` to :class:`HeaderTuple

0 commit comments

Comments
 (0)