Crate webfinger

Source
Expand description

A crate to help you fetch and serve WebFinger resources.

Use resolve to fetch remote resources, and Resolver to serve your own resources.

Structs§

Link
Structure to represent a WebFinger link
Webfinger
WebFinger result that may serialized or deserialized to JSON

Enums§

Prefix
A prefix for a resource, either acct:, group: or some custom type.
ResolverError
An error that occured while handling an incoming WebFinger request.
WebfingerError
An error that occured while fetching a WebFinger resource.

Traits§

Resolver
A trait to easily generate a WebFinger endpoint for any resource repository.

Functions§

resolve
Fetches a Webfinger resource.
resolve_with_prefix
Fetches a WebFinger resource, identified by the acct parameter, a Webfinger URI.
url_for
Computes the URL to fetch for a given resource.