io library
dart:io helpers of freedome_client (VM / Flutter mobile + desktop, not web): .dome files and directories,
file upload sources, mDNS discovery, TLS-pinned HTTP client.
Classes
- DirectoryDomeContainer
-
An unpacked
<name>.dome/directory (01b §2: equally valid;mimetypeoptional). - DomeFiles
- File helpers of DomeCodec.
- FileByteSource
- A DomeByteSource over a file (random access, nothing loaded up front).
- FileContentSource
- Upload source backed by a file.
- FormatInputs
- Builds FormatInputs from paths.
- MdnsDiscovery
-
Finds media servers on the local network (VM / desktop; Flutter mobile apps use
BonsoirDiscoveryfromfreedome_flutter, 02f §8.1). Records are keyed by the TXTid; addresses are re-resolved on every scan.
Constants
- freedomeMdnsService → const String
- The service type advertised by the media server.
Functions
-
pinnedClient(
String pin) → Client -
An
http.Clientthat accepts the server only when its certificate's SHA-256 matchespin— for self-signed installations (TOFU) and for CA-signed certificates (checked on every response).