Skip to main content

get_as

Function get_as 

Source
pub async fn get_as(
    http: &Client,
    url: &str,
    accept: &str,
    max_bytes: usize,
) -> Result<Vec<u8>, String>
Expand description

What url answers when it is asked for accept, up to max_bytes: a relay’s account of itself, say, which is at the relay’s own address for whoever asks for that and not for a page.