Instance Method
getInfo(_:)
Convenience: issue GETINFO for a single key.
func getInfo(_ key: String) async throws -> String?
Parameters
-
key
-
The single info key to query.
Return Value
The value string, or nil when Tor returned no entry for that key.
Mentioned In
Discussion
Composes getInfo(_:) with a single-element array and looks up the key in the returned dictionary. Avoids the array boilerplate at call sites that want just one value.
Throws
Same errors as getInfo(_:).