Skip to main content

Module client

Module client 

Source
Expand description

The classic finger client (finger://, port 79, RFC 1288).

The request is a username and a CRLF; the reply is free-form text meant for a human. There is no status line, no MIME type, and no structure: whatever the remote fingerd felt like printing is the answer. That looseness is why WebFinger exists.

An empty username asks for a listing of everyone logged in, which most modern hosts refuse or answer emptily.

let reply = finger_protocol::fetch("finger://example.org/alice").await?;
println!("{}", reply.text());

Structs§

Query
One finger request.
Response
A finger reply: free-form text, as bytes.

Enums§

ClientError
What can go wrong fingering a host.

Constants§

DEFAULT_PORT
Finger’s well-known port.

Functions§

fetch
Fetch a finger:// URL.
query
Run a finger query against a host directly.