libdav::sd

Function find_context_path_via_txt_records

source
pub async fn find_context_path_via_txt_records(
    service: DiscoverableService,
    domain: &Name<impl AsRef<[u8]>>,
) -> Result<Option<PathAndQuery>, TxtError>
Expand description

Resolves a context path via TXT records.

This returns a path where the default context path should be used for a given domain. The domain provided should be in the format of example.com or posteo.de.

Returns an empty list of no relevant record was found.

§Errors

See TxtError

§See also

https://www.rfc-editor.org/rfc/rfc6764