pub(crate) fn metadata_url(
req: &Request,
http_host_name: Option<&str>,
) -> Option<String>Expand description
Builds the absolute URL of the protected resource metadata document
for use as the resource_metadata parameter in a WWW-Authenticate
challenge. Returns None if the request lacks enough host information
to construct a URL; the caller is expected to skip the Bearer challenge
in that case rather than emit a malformed value.