Type Method
parseAddOnionResponse(_:)
Decode an ADD_ONION response directly from raw reply lines.
static func parseAddOnionResponse(_ rawLines: [String]) throws -> AddOnionResponse
Parameters
-
rawLines
-
Raw reply lines produced by readReply().
Return Value
A decoded AddOnionResponse.
Discussion
Composes parseReply(_:) and parseAddOnionResponse(_:). Useful when a caller holds the raw lines (from a persisted transcript or a mock socket) and doesn’t want to parse in two steps.
Throws
Errors from both underlying parsers.