Skip to main content

peer_accepts_files

Function peer_accepts_files 

Source
pub(crate) async fn peer_accepts_files(
    client: &Client,
    url: &str,
    auth_key: &str,
    target: &str,
) -> Option<bool>
Expand description

Whether the LAN peer at url takes files for target: its agent answer lists the feature (spec §3.4). None when the question went unanswered (unreachable, an error status, a body that isn’t JSON), which says nothing about the peer’s build.