actix-webfinger 0.3.0-alpha.6

Types and helpers to create and fetch Webfinger resources
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use actix_web::client::Client;
use actix_webfinger::Webfinger;
use std::error::Error;

#[actix_rt::main]
async fn main() -> Result<(), Box<dyn Error>> {
    let client = Client::default();
    let wf = Webfinger::fetch(&client, "asonix@localhost:8000", "localhost:8000", false).await?;

    println!("asonix's webfinger:\n{:#?}", wf);
    Ok(())
}