Skip to main content

parse_subscription

Function parse_subscription 

Source
pub fn parse_subscription(content: &str) -> Result<ParseReport>
Expand description

Parse Clash YAML or newline-separated HTTP(S)/SOCKS5(H) proxy URLs.

Either format may be wrapped once in standard or URL-safe Base64, with or without padding or whitespace. Unsupported protocols, malformed entries, and duplicates are skipped; an empty usable result is an error. No parsing error includes subscription content or credentials.