Skip to main content

Module remote

Module remote 

Source

Re-exportsยง

use std::fmt::Debug; ๐Ÿ”’
use std::fmt::Debug; ๐Ÿ”’
use std::time::Duration; ๐Ÿ”’
use http::header::CONTENT_DISPOSITION; ๐Ÿ”’
use http::header::CONTENT_TYPE; ๐Ÿ”’
use http::header::HeaderValue; ๐Ÿ”’
use ruma::Mxc; ๐Ÿ”’
use ruma::ServerName; ๐Ÿ”’
use ruma::api::OutgoingRequest; ๐Ÿ”’
use ruma::api::client::media; ๐Ÿ”’
use ruma::api::error::ErrorKind::NotFound; ๐Ÿ”’
use ruma::api::error::ErrorKind::Unrecognized; ๐Ÿ”’
use ruma::api::federation; ๐Ÿ”’
use ruma::api::federation::authenticated_media::Content; ๐Ÿ”’
use ruma::api::federation::authenticated_media::FileOrLocation; ๐Ÿ”’
use ruma::http_headers::ContentDisposition; ๐Ÿ”’
use tuwunel_core::Err; ๐Ÿ”’
use tuwunel_core::Error; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::debug_warn; ๐Ÿ”’
use tuwunel_core::err; ๐Ÿ”’
use tuwunel_core::implement; ๐Ÿ”’
use tuwunel_core::utils::content_disposition::make_content_disposition; ๐Ÿ”’
use url::Url; ๐Ÿ”’
use super::Animate; ๐Ÿ”’
use super::Dim; ๐Ÿ”’
use super::Fetched; ๐Ÿ”’
use super::Media; ๐Ÿ”’
use super::preview::Agent; ๐Ÿ”’
use super::thumbnail::sequence; ๐Ÿ”’
use crate::client::read_response_capped; ๐Ÿ”’
use crate::federation::scheme::FedAuth; ๐Ÿ”’
use crate::federation::scheme::FedPath; ๐Ÿ”’

Enumsยง

Fetch ๐Ÿ”’
Which client fetches a media location, and as whom.

Functionsยง

fetched_media ๐Ÿ”’
Assembles what a peer answered into media under the disposition it was filed with.
handle_federation_error ๐Ÿ”’