Stream¶
JSON¶
JSON stream wrapper.
-
class
torweb.api.json.stream.
JsonStream
(obj)[source]¶ Bases:
torweb.api.json.minimalstream.JsonStreamMinimal
Json wrapper for stream objects.
-
state_text
= {'NEWRESOLVE': 'New request to resolve an address', 'SENTRESOLVE': 'Sent a resolve cell along a circuit', 'REMAP': 'Address re-mapped to another', 'CLOSED': 'Stream closed', 'SUCCEEDED': 'Received a reply; stream established', 'FAILED': 'Stream failed and not retriable', 'NEW': 'New request to connect', 'DETACHED': 'Detached from circuit; still retriable', 'SENTCONNECT': 'Sent a connect cell along a circuit'}¶ Convert the state to a text.
-
-
class
torweb.api.json.stream.
JsonStreamMinimal
(obj)[source]¶ Bases:
torweb.api.json.base.JsonObjectWrapper
Json wrapper for stream objects.