request

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	Key   string
	Value string
}

type RequestModel

type RequestModel struct {
	Hovered       bool
	Viewport      viewport.Model
	ViewportReady bool

	TextArea     textarea.Model
	TableHeaders table.Model
	KeyInput     textinput.Model
	ValueInput   textinput.Model

	Headers    []Header
	FocusedTab RequestTab

	RequestHeight int
	RequestWidth  int
}

func New

func New() RequestModel

func (RequestModel) Init

func (m RequestModel) Init() tea.Cmd

func (RequestModel) Update

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

func (RequestModel) View

func (m RequestModel) View() string

type RequestTab

type RequestTab int
const (
	Body RequestTab = iota
	Headers
)

func (RequestTab) String

func (r RequestTab) String() string

Jump to

Keyboard shortcuts

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