Skip to main content

Module media_legacy

Module media_legacy 

Source

Re-exportsยง

use axum::extract::State; ๐Ÿ”’
use axum::response::IntoResponse; ๐Ÿ”’
use axum::response::Redirect; ๐Ÿ”’
use axum::response::Response; ๐Ÿ”’
use reqwest::Url; ๐Ÿ”’
use ruma::Mxc; ๐Ÿ”’
use ruma::api::client::media::get_content; ๐Ÿ”’
use ruma::api::client::media::get_content_as_filename; ๐Ÿ”’
use ruma::api::client::media::get_content_thumbnail; ๐Ÿ”’
use ruma::api::client::media::get_content_thumbnail::v3::Response as ThumbnailResponse; ๐Ÿ”’
use ruma::api::client::media::get_media_config; ๐Ÿ”’
use ruma::api::client::media::get_media_preview; ๐Ÿ”’
use tuwunel_core::Err; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::err; ๐Ÿ”’
use tuwunel_core::utils::content_disposition::make_content_disposition; ๐Ÿ”’
use tuwunel_core::utils::math::ruma_from_usize; ๐Ÿ”’
use tuwunel_service::media::Animate; ๐Ÿ”’
use tuwunel_service::media::CACHE_CONTROL_IMMUTABLE; ๐Ÿ”’
use tuwunel_service::media::CORP_CROSS_ORIGIN; ๐Ÿ”’
use tuwunel_service::media::Dim; ๐Ÿ”’
use tuwunel_service::media::Media; ๐Ÿ”’
use crate::ClientIp; ๐Ÿ”’
use crate::Ruma; ๐Ÿ”’
use crate::RumaResponse; ๐Ÿ”’

Functionsยง

get_content_as_filename_legacy_route ๐Ÿ”’
GET /_matrix/media/v3/download/{serverName}/{mediaId}/{fileName}
get_content_legacy_route ๐Ÿ”’
GET /_matrix/media/v3/download/{serverName}/{mediaId}
get_content_thumbnail_legacy_route ๐Ÿ”’
GET /_matrix/media/v3/thumbnail/{serverName}/{mediaId}
get_media_config_legacy_route ๐Ÿ”’
GET /_matrix/media/v3/config
get_media_preview_legacy_route ๐Ÿ”’
GET /_matrix/media/v3/preview_url