Skip to main content

parse_bundle_uri_line

Function parse_bundle_uri_line 

Source
pub fn parse_bundle_uri_line(list: &mut BundleUriList, line: &str) -> Result<()>
Expand description

Parse one key=value line from a protocol-v2 bundle-uri response into list, mirroring upstream bundle_uri_parse_line / bundle_list_update.

The comparison is byte-exact (upstream uses strcmp, not case-insensitive matching, and never trims whitespace): the key is split at the FIRST =, an empty key or value is an error, and the bundle.<subsection>.<key> split uses parse_config_key (subsection = up to the last dot). Unknown bundle.mode values and non-1 versions are errors; an unparseable creationtoken is warned about (not silently zeroed) and otherwise ignored.