Available on crate features
client
or server
only.Expand description
Endpoints and helpers for the media repository.
Modules§
- create_
content POST /_matrix/media/*/upload
- create_
content_ async PUT /_matrix/media/*/upload/{serverName}/{mediaId}
- create_
mxc_ uri POST /_matrix/media/*/create
- get_
content GET /_matrix/media/*/download/{serverName}/{mediaId}
- get_
content_ as_ filename GET /_matrix/media/*/download/{serverName}/{mediaId}/{fileName}
- get_
content_ thumbnail GET /_matrix/media/*/thumbnail/{serverName}/{mediaId}
- get_
media_ config GET /_matrix/media/*/config
- get_
media_ preview GET /_matrix/media/*/preview_url
Functions§
- is_
safe_ inline_ content_ type - Checks whether a given
Content-Type
is considered “safe” for having aContent-Disposition
ofinline
returned on/download
, as recommended by the spec.