Structure
ControlReply
A fully-parsed Tor control-protocol reply, ready for business logic.
struct ControlReply
Overview
Represents the result of parsing one or more raw lines from readReply() into a single semantic unit per control-spec.txt §2.3: a numeric status code, the content lines (stripped of the NNN<sep> prefix), and an optional verbatim data block (for NNN+ replies terminated by a sole .).
Note
Conformance is Sendable + Equatable; synthesised equality compares statusCode, lines (element-wise), and data verbatim.
Important
ControlReply makes no claim about whether a reply is semantically valid for the command that elicited it — only that the wire format parsed. Per-command parsers (parseAddOnionResponse(_:) et al.) validate payload shape on top.
Topics
Core fields
Classification
Structured access
Creating