(self)
| 1248 | super().set_state(state) |
| 1249 | |
| 1250 | def __repr__(self): |
| 1251 | s = "<HTTPFlow" |
| 1252 | for a in ( |
| 1253 | "request", |
| 1254 | "response", |
| 1255 | "websocket", |
| 1256 | "error", |
| 1257 | "client_conn", |
| 1258 | "server_conn", |
| 1259 | ): |
| 1260 | if getattr(self, a, False): |
| 1261 | s += f"\r\n {a} = {{flow.{a}}}" |
| 1262 | s += ">" |
| 1263 | return s.format(flow=self) |
| 1264 | |
| 1265 | @property |
| 1266 | def timestamp_start(self) -> float: |