Skip to content

Commit 57bf242

Browse files
authored
Split SEND_BODY and DONE
1 parent 4b44033 commit 57bf242

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

h11/_state.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,23 +116,24 @@
116116

117117
__all__ = [
118118
"CLIENT", "SERVER", "IDLE", "SEND_RESPONSE",
119-
"SEND_BODY_DONE", "MUST_CLOSE", "CLOSED",
120-
"MIGHT_SWITCH_PROTOCOL", "SWITCHED_PROTOCOL",
121-
"ERROR"
119+
"SEND_BODY", "DONE", "MUST_CLOSE",
120+
"CLOSED", "MIGHT_SWITCH_PROTOCOL",
121+
"SWITCHED_PROTOCOL", "ERROR"
122122
]
123123

124124
CLIENT = make_sentinel("CLIENT")
125-
SERVER = make_sentinel("CLIENT")
125+
SERVER = make_sentinel("SERVER")
126126

127127
# States
128128
IDLE = make_sentinel("IDLE")
129129
SEND_RESPONSE = make_sentinel("SEND_RESPONSE")
130-
SEND_BODY_DONE = make_sentinel("SEND_BODY_DONE")
130+
SEND_BODY = make_sentinel("SEND_BODY")
131+
DONE = make_sentinel("DONE")
131132
MUST_CLOSE = make_sentinel("MUST_CLOSE")
132133
CLOSED = make_sentinel("CLOSED")
133134

134135
# Switch types
135-
MIGHT_SWITCH_PROTOCOL = make_sentinel("CLIENT")
136+
MIGHT_SWITCH_PROTOCOL = make_sentinel("MIGHT_SWITCH_PROTOCOL")
136137
SWITCHED_PROTOCOL = make_sentinel("SWITCHED_PROTOCOL")
137138

138139
_SWITCH_UPGRADE = make_sentinel("_SWITCH_UPGRADE")

0 commit comments

Comments
 (0)