fn takes_raw_body(route: TypeId) -> boolExpand description
Identifies the routes whose request body is an uploaded file, not JSON.
These are the media uploads the specification exempts from JSON request bodies and the only ruma requests declaring a raw body; a new one belongs here too, so its bytes are stored and served exactly as sent.