Skip to main content

takes_raw_body

Function takes_raw_body 

Source
fn takes_raw_body(route: TypeId) -> bool
Expand 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.