pub fn parse_body(
content_type: Option<&str>,
body: &[u8],
) -> Result<Value, BodyError>Expand description
Parse request body bytes into a JSON Value based on content type.
application/x-www-form-urlencoded→ parse form fields into JSON objectapplication/jsonor anything else → parse as JSON- Empty body →
{}