MCPcopy
hub / github.com/qustavo/httplab / renderBody

Method renderBody

ui/ui.go:710–722  ·  view source on GitHub ↗
(g *gocui.Gui)

Source from the content-addressed store, hash-verified

708}
709
710func (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
724func (ui *UI) openBodyFilePopup(g *gocui.Gui) error {
725 if err := ui.closePopup(g, ui.currentPopup); err != nil {

Callers 4

setResponseViewMethod · 0.95
restoreResponseMethod · 0.95
openBodyFilePopupMethod · 0.95
nextBodyModeMethod · 0.95

Calls 2

WriteMethod · 0.80
InfoMethod · 0.45

Tested by

no test coverage detected