Skip to main content

request_url

Function request_url 

Source
pub fn request_url(host: &str, resource: &str, rels: &[&str]) -> String
Expand description

Build the WebFinger request URL for a resource at a host.

rels filters the response to the named link relations; an empty slice asks for everything. A server may ignore the filter, so a caller must not assume the absence of a link means the absence of the relation.