response

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IsLoadingMsg

type IsLoadingMsg bool

type ResponseModel

type ResponseModel struct {
	ResponseWidth  int
	ResponseHeight int
	Result         ResultMsg
	IsLoading      bool

	Viewport      viewport.Model
	ViewportReady bool
	Hovered       bool
	FocusedTab    ResponseTab
	ResponseTime  string
}

func New

func New() ResponseModel

func (ResponseModel) Init

func (m ResponseModel) Init() tea.Cmd

func (ResponseModel) Update

func (m ResponseModel) Update(msg tea.Msg) (ResponseModel, tea.Cmd)

func (ResponseModel) View

func (m ResponseModel) View() string

type ResponseTab

type ResponseTab int
const (
	Body ResponseTab = iota
	Headers
	Cookies
)

func (ResponseTab) String

func (r ResponseTab) String() string

type ResultMsg

type ResultMsg struct {
	Cookies            []*http.Cookie
	StatusCode         int
	Headers            http.Header
	Data               []byte
	Body               string
	Error              error
	ResponseFocusedTab string
	ResponseTime       string
}

Jump to

Keyboard shortcuts

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