[][src]Function webfinger::url_for

pub fn url_for(
    prefix: Prefix,
    acct: impl Into<String>,
    with_https: bool
) -> Result<String, WebfingerError>

Computes the URL to fetch for a given resource.

Parameters

  • prefix: the resource prefix
  • acct: the identifier of the resource, for instance: someone@example.org
  • with_https: indicates wether the URL should be on HTTPS or HTTP