Function bitcoin_tor::parse_tor_reply_mapping
source · pub fn parse_tor_reply_mapping(s: &String) -> HashMap<String, String>Expand description
| Parse reply arguments in the form ‘METHODS=COOKIE,SAFECOOKIE | COOKIEFILE=“…/control_auth_cookie”’. | | Returns a map of keys to values, or an | empty map if there was an error. | | Grammar is implicitly defined in https://spec.torproject.org/control-spec | by the server reply formats for PROTOCOLINFO | (S3.21), AUTHCHALLENGE (S3.24), and | ADD_ONION (S3.27). See also sections | 2.1 and 2.3. |