pub fn parse_document( hostname: &str, url: &str, body: &str, ) -> Result<DidDocument, ResolveError>
Parses body as hostname’s DID document, checking its id against what was asked for.
body
hostname
id