1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
//! Experimental features: messages a client and server use only
//! when both said so in `Hello`.
//!
//! A client names the features it wants in [`Hello::experimental`]; the
//! server's answer, [`ServerInfo::experimental`], names those it turned on
//! for the connection: the ones it knows and has on. Neither side assumes
//! a feature the other did not name, and a name either does not know is
//! ignored, never an error. An older server ignores the field, and its
//! answer names none.
//!
//! An experimental feature's messages are outside the protocol's
//! stability: they may change or go away without [`PROTOCOL_VERSION`]
//! moving, and protocol version 1 does not promise them. One graduates by
//! becoming an ordinary message of a protocol version, and its name goes.
//!
//! [`Hello::experimental`]: crate::Hello::experimental
//! [`ServerInfo::experimental`]: crate::ServerInfo::experimental
//! [`PROTOCOL_VERSION`]: crate::PROTOCOL_VERSION
use ;
/// A playback's HLS over plain HTTP, from the server's own port, for a
/// player with no Iroh (AirPlay first): `Request::HttpPlaybackUrl`.
pub const HTTP_PLAYBACK: &str = "http-playback";
/// Server-to-server federation: the client protocol's `PairServer`
/// and a `federation` invite. The server's own side, the
/// `spoolframe/federation/1` ALPN ([`crate::federation`]), is open only
/// while its `experimental.federation` is on.
pub const FEDERATION: &str = "federation";
/// Faces in backdrops, so that a wide hero's crop keeps the heads: an
/// artwork reply's `faces`, left out for a connection without the feature.
/// On while the server's `experimental.smart_crop` is.
pub const SMART_CROP: &str = "smart-crop";
/// The most feature names a server keeps of a `Hello`; the rest are
/// dropped, as each name is cut to `MAX_HELLO_TEXT` characters.
pub const MAX_ASKED: usize = 16;
/// The features of `asked` that are among `on`, each once, in `asked`'s
/// order: what a server's answer names. A name not among `on` is ignored.
/// Why the server gives no HTTP URL for a playback (`http-playback`).