responsepane

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2026 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponsePane

type ResponsePane struct {
	Response      *http.Response
	LoadTestStats *http.LoadTestStats
	// contains filtered or unexported fields
}

ResponsePane is the component responsible for displaying HTTP responses and load test statistics

func SetupResponsePane

func SetupResponsePane(keys keybindings.KeyMap) ResponsePane

SetupResponsePane creates and initializes a new ResponsePane with default values

func (*ResponsePane) ClearLoadTestStats

func (m *ResponsePane) ClearLoadTestStats()

ClearLoadTestStats clears load test data and switches back to normal mode

func (ResponsePane) Init

func (m ResponsePane) Init() tea.Cmd

Init initializes the response pane

func (*ResponsePane) SetFocused

func (m *ResponsePane) SetFocused(focused bool)

SetFocused sets the focused state of the response pane

func (*ResponsePane) SetHeight

func (m *ResponsePane) SetHeight(height int)

SetHeight sets the height of the response pane

func (*ResponsePane) SetLoadTestStats

func (m *ResponsePane) SetLoadTestStats(stats *http.LoadTestStats)

SetLoadTestStats updates the response pane with load test statistics

func (*ResponsePane) SetResponse

func (m *ResponsePane) SetResponse(response *http.Response)

SetResponse updates the response pane with a new HTTP response

func (*ResponsePane) SetWidth

func (m *ResponsePane) SetWidth(width int)

SetWidth sets the width of the response pane

func (*ResponsePane) Update

func (m *ResponsePane) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handles Bubble Tea messages and state transitions

func (ResponsePane) View

func (m ResponsePane) View() string

View renders the response pane

type TabIndex

type TabIndex int

TabIndex represents a tab position

const (
	TabBody TabIndex = iota
	TabHeaders
	TabTiming
)

Tab indices for normal mode

const (
	TabLoadTestOverview TabIndex = iota
	TabLoadTestLatency
	TabLoadTestErrors
)

Tab indices for load test mode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL