(&mut self, cx: &mut Context<Self>)
| 476 | let had_body_bytes = !self.payload.body_bytes.is_empty(); |
| 477 | |
| 478 | if had_body_bytes |
| 479 | && !self.payload.body.is_empty() |
| 480 | && matches!( |
| 481 | Self::classify_content(self.content_type.as_deref(), &self.payload.body_bytes), |
| 482 | ContentCategory::Json |
| 483 | | ContentCategory::Html |
| 484 | | ContentCategory::Xml |
| 485 | | ContentCategory::Text |
| 486 | ) |