Skip to main contentModule remote
Source use std::fmt::Debug; ๐ use std::fmt::Debug; ๐ use std::time::Duration; ๐ use http::header::CONTENT_DISPOSITION; ๐ use http::header::CONTENT_TYPE; ๐ 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; ๐
- Fetch ๐
- Which client fetches a media location, and as whom.
- fetched_media ๐
- Assembles what a peer answered into media under the disposition it was
filed with.
- handle_federation_error ๐