Skip to main content

get_content_legacy_route

Function get_content_legacy_route 

Source
pub(crate) async fn get_content_legacy_route(
    __arg0: State<State>,
    __arg1: ClientIp,
    body: Args<Request>,
) -> Result<Response>
Expand description

ยงGET /_matrix/media/v3/download/{serverName}/{mediaId}

Load media from our server or over federation.

  • Only allows federation if allow_remote is true
  • Only redirects if allow_redirect is true
  • Uses client-provided timeout_ms if available, else defaults to 20 seconds