Skip to main content

parse

Function parse 

Source
pub fn parse(body: &str, rest_base: &str) -> Option<CloudSettings>
Expand description

Parse and check a discovery document. None for anything srv shouldn’t act on: another format version, a missing field, or a URL that isn’t https/wss (plain http/ws only when the relay itself is plain http, i.e. a local dev relay).