diff --git a/rq-cli/src/components/response_panel.rs b/rq-cli/src/components/response_panel.rs index 7c530ec..31537a7 100644 --- a/rq-cli/src/components/response_panel.rs +++ b/rq-cli/src/components/response_panel.rs @@ -19,10 +19,11 @@ use super::{ BlockComponent, HandleResult, HandleSuccess, }; -pub const KEYMAPS: &[(&str, &str); 3] = &[ +pub const KEYMAPS: &[(&str, &str); 4] = &[ ("↓/↑ j/k", "scroll down/up"), ("Enter", "send request"), ("s", "save"), + ("r", "show raw bytes"), ]; #[derive(Copy, Clone, Default)] @@ -226,6 +227,9 @@ impl BlockComponent for ResponsePanel { KeyCode::Char('s') => { self.save_menu = Some(Popup::new(Menu::new(SaveOption::iterator().collect()))); } + KeyCode::Char('r') => { + self.show_raw = !self.show_raw; + } _ => return Ok(HandleSuccess::Ignored), };