(g *gocui.Gui)
| 708 | } |
| 709 | |
| 710 | func (ui *UI) renderBody(g *gocui.Gui) error { |
| 711 | v, err := g.View(BodyView) |
| 712 | if err != nil { |
| 713 | return err |
| 714 | } |
| 715 | |
| 716 | body := ui.resp.Body |
| 717 | |
| 718 | v.Title = fmt.Sprintf("Body (%s)", body.Mode) |
| 719 | v.Clear() |
| 720 | v.Write(body.Info()) |
| 721 | return nil |
| 722 | } |
| 723 | |
| 724 | func (ui *UI) openBodyFilePopup(g *gocui.Gui) error { |
| 725 | if err := ui.closePopup(g, ui.currentPopup); err != nil { |
no test coverage detected