Method
__init__
(self, context: Context, mode: HTTPMode)
Source from the content-addressed store, hash-verified
| 937 | ] |
| 938 | |
| 939 | def __init__(self, context: Context, mode: HTTPMode): |
| 940 | super().__init__(context) |
| 941 | self.mode = mode |
| 942 | |
| 943 | self.waiting_for_establishment = collections.defaultdict(list) |
| 944 | self.streams = {} |
| 945 | self.command_sources = {} |
| 946 | self.connections = {} |
| 947 | |
| 948 | def __repr__(self): |
| 949 | return f"HttpLayer({self.mode.name}, conns: {len(self.connections)})" |
Tested by
no test coverage detected